It depends - in this case on the exception class hierarchy. You cannot subclass CX_ROOT
directly, you have to use one of its direct subclasses:
- subclasses of
CX_STATIC_CHECK
have to be handled or propagated, otherwise the program is syntactically incorrect - subclasses of
CX_DYNAMIC_CHECK
do not require handling or propagation, but will abort the program that does not handle or propagate the exception - subclasses of
CX_NO_CHECK
will always be propagated automatically unless handled
Catching CX_ROOT
inside the application is usually a bad idea, unless you really know what you're doing. Don't try to catch stuff you can't handle.