Web
Opt
tools
Custom Exception Handling
Custom Exception Class
Custom Exception Message
Handling Options
Log Error
Re-raise Exception
Return Default Value
Run Visualization
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