MlException Class
The base class for all exceptions raised in AzureML SDK code base. If there is a need to define a custom exception type, that custom exception type should extend from this class.
- Inheritance
-
MlException
Constructor
MlException(message: str, no_personal_data_message: str, *args, target: ErrorTarget = 'Unknown', error_category: ErrorCategory = 'Unknown', **kwargs)
Parameters
- no_personal_data_message
- str
The error message without any personal data. This will be pushed to telemetry logs.
Keyword-Only Parameters
- target
- error_category
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
No personal data error message.
Return type
target
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for