Using exceptions in a program provides us with various
advantages.
In traditional style of programming, detection and handling
of an error results in a disorganized code, whereas exception give us the
advantage of separating the normal flow of program logic from the code that
handles when something abnormal happens.
Exceptions give us the scope of organizing and
differentiating between different error types using a separate block of codes.
One of the significant features which exception provides is
the ability to propagate the error reporting up the call stack of methods.
By Debjani Mallick