ServiceBusError Class
Base exception for all Service Bus errors which can be used for default error handling.
- Inheritance
-
ServiceBusError
Constructor
ServiceBusError(message: str | bytes | 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 |
---|---|
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 |
Methods
add_note |
Exception.add_note(note) – add a note to the exception |
raise_with_traceback |
Raise the exception with the existing traceback. Deprecated since version 1.22.0: This method is deprecated as we don't support Python 2 anymore. Use raise/from instead. |
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()
raise_with_traceback
Raise the exception with the existing traceback.
Deprecated since version 1.22.0: This method is deprecated as we don't support Python 2 anymore. Use raise/from instead.
raise_with_traceback() -> None
with_traceback
Exception.with_traceback(tb) – set self.traceback to tb and return self.
with_traceback()
Attributes
args
Azure SDK for Python