AzureError Class

Base exception for all errors.

Inheritance
builtins.Exception
AzureError

Constructor

AzureError(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
str

A stringified version of the message parameter

continuation_token
str

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

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