Custom Exception Handling

Console Output
>

Custom Exception Flow

Custom Exception Class
class CustomError(Exception):
TRY Block
Raising custom exception...
CUSTOM EXCEPTION
CustomError raised
EXCEPT Block
Handling custom error...
Custom Exception Details:
Class Name:CustomError
Message:Custom error occurred!
Handled:Yes
Exception Hierarchy:
BaseException
  └── Exception
      └── CustomError
Execution Stats
✓ Custom Exception: Defined
✓ Exception: Raised
✓ Exception: Caught
✓ Program: Continued