failure method
Leave feedback
On this page
Creates a failed result with error information.
def failure(cls, error_message, exception):
...
| Parameter | Type | Description |
|---|---|---|
| error_message | str |
A human-readable description of the error. |
| exception | Exception |
The exception that caused the failure. |
Returns: ConvertResult: A ConvertResult with IsSuccess set to False.
- class
ConvertResult
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.