The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.9
CustomError
Package: flyte.errors
This error is raised when the user raises a custom error.
Parameters
class CustomError(
code: str,
message: str,
)| Parameter | Type | Description |
|---|---|---|
code |
str |
|
message |
str |
Methods
| Method | Description |
|---|---|
from_exception() |
Create a CustomError from an exception. |
from_exception()
def from_exception(
e: Exception,
)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.
| Parameter | Type | Description |
|---|---|---|
e |
Exception |