BaseError Class
Base exception for all errors.
Constructor
BaseError(message: object | None, *args: Any, **kwargs: Any)
Parameters
| Name | Description |
|---|---|
|
message
Required
|
The message object stringified as 'message' attribute |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
error
|
The original exception if any |
Variables
| Name | Description |
|---|---|
|
inner_exception
|
The exception passed with the 'error' kwarg |
|
exc_type
|
The exc_type from sys.exc_info() |
|
exc_value
|
The exc_value from sys.exc_info() |
|
exc_traceback
|
The exc_traceback from sys.exc_info() |
|
exc_msg
|
A string formatting of message parameter, exc_type and exc_value |
|
message
|
A stringified version of the message parameter |
|
continuation_token
|
A token reference to continue an incomplete operation. This value is optional and will be None where continuation is either unavailable or not applicable. |
Methods
| add_note |
Exception.add_note(note) – add a note to the exception |
| with_traceback |
Exception.with_traceback(tb) – set self.traceback to tb and return self. |
add_note
Exception.add_note(note) – add a note to the exception
add_note()
with_traceback
Exception.with_traceback(tb) – set self.traceback to tb and return self.
with_traceback()