JobException Class
Class for all exceptions related to Jobs.
- Inheritance
-
JobException
Constructor
JobException(message: str, no_personal_data_message: str, *args, target: ErrorTarget = 'Unknown', error_category: ErrorCategory = 'Unknown', **kwargs)
Parameters
Name | Description |
---|---|
message
Required
|
A message describing the error. This is the error message the user will see. |
no_personal_data_message
Required
|
The error message without any personal data. This will be pushed to telemetry logs. |
target
Required
|
The name of the element that caused the exception to be thrown. |
error_category
Required
|
The error category, defaults to Unknown. |
Keyword-Only Parameters
Name | Description |
---|---|
target
|
Default value: Unknown
|
error_category
|
Default value: Unknown
|
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
error_category
no_personal_data_message
Return the error message with no personal data.
Returns
Type | Description |
---|---|
No personal data error message. |
target
Azure SDK for Python