2.0.0b35

CustomError

Package: flyte.errors

This error is raised when the user raises a custom error.

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