Friday, December 12, 2008

Exception

A Java exception is an object that describes an exceptional condition that has occurred in a piece of code. When an exceptional condition arises an object representing that exception is created and thrown in the method that caused the error. Exceptions can be generated by the Java run-time system, or they can be manually generated by the code. Manually generated exceptions are typically used to report some error condition to the caller of a method.

No comments: