I'm just trying to figure it out a little better.
I understand that there are many different types of exceptions, and according to some reading I made, all types of exceptions fall into Exception. First of all, can I be sure that this is true?
try{ ... } catch(Exception x){
Next, how does this trap work? If Exception is at the top, that is, every other level of exception of type 1 in Exception, or there are several types of types, for example, if Exception is the parent of ExceptionSomething, which is the parent of ExceptionSomethingElse?
:
Or, if we have a code like this:
try{ ... } catch(SystemException x){ //If there is an exception that is not a SystemException //code in this block will not run, right (since this is //looking specifically for SystemExceptions)? }
source share