<<< What is an exception? | Index | try and catch >>> |
Exception is an object encapsulating information about exception.
Flow of events goes like this:
Exception (error) occurs.
Execution of the current operation is abandoned.
Exception object is constructed and initialized with parameters describing the error.
A search for exception handler is performed.
Each exception handler designates an exception type that it handles.
Exception handler is executed.
Upon completion of exception handler, normal execution is restored.
<<< What is an exception? | Index | try and catch >>> |