CustomError
This error is raised when the user raises a custom error.
Constructors
- Initializes a CustomError instance.
Args: code (str): The error code. message (str): The error message.
-
Parameters
- code: string
- The error code.
- message: string
- The error message.
- code: string
Methods
def from_exception(e: Exception) - > [CustomError](src_flyte_errors_customerror)
-
Create a CustomError from an exception. The exception's class name is used as the error code and the exception message is used as the error message.
-
Parameters
- e: Exception
- The exception to convert.
- e: Exception
-
Return Value: CustomError
- A CustomError instance.