November 6th, 2013, 12:01 AM
-
Exeption handling
what is the difference between throw and throws
i have read about this on internet but the concept is not clear to me. thanks.
November 6th, 2013, 03:28 AM
-
Originally Posted by mk12345
what is the difference between throw and throws
i have read about this on internet but the concept is not clear to me. thanks.
A function can throw an exception.
If you call a function that do this, you can either catch the exception or add to the function that it should throws all exception
basically, throw is to raise an exception where throws is use to forward the exception.
November 6th, 2013, 11:13 PM
-
can you please post the code to describe it.
November 7th, 2013, 03:49 AM
-
November 8th, 2013, 12:48 AM
-
thanks mrFujin