CSC/ECE 517 Fall 2009/wiki1b 3 b4
Exception-Handling in O-O language
When an error occurs within a method, the method creates an object and hand it off to the runtime system. The object, called an exception object, contains information about the error, including its type and the state of the program when the error occurred. Creating an exception object and handing it to the runtime system is calling throwing an exception.