Flyte 2 is available today for local execution - distributed execution coming to open source soon. Preview Flyte 2 for production, hosted on Union.ai
2.0.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