flytekit.types.error
flytekit.types.error
Flytekit Error Type
.. currentmodule:: flytekit.types.error
.. autosummary::
:nosignatures:
:template: custom.rst
:toctree: generated/
FlyteError
Directory
Classes
Class
Description
FlyteError
Special Task type that will be used in the failure node.
flytekit.types.error.FlyteError
Special Task type that will be used in the failure node. Propeller will pass this error to failure task, so users
have to add an input with this type to the failure task.
def FlyteError (
message: str,
failed_node_id: str,
):
Parameter
Type
message
str
failed_node_id
str
Methods
from_dict()
def from_dict (
d,
dialect,
):
from_json()
def from_json (
data: typing. Union[str, bytes, bytearray],
decoder: collections. abc. Callable[[typing. Union[str, bytes, bytearray]], dict[typing. Any, typing. Any]],
from_dict_kwargs: typing. Any,
):
Parameter
Type
data
typing.Union[str, bytes, bytearray]
decoder
collections.abc.Callable[[typing.Union[str, bytes, bytearray]], dict[typing.Any, typing.Any]]
from_dict_kwargs
typing.Any
to_dict()
to_json()
def to_json (
encoder: collections. abc. Callable[[typing. Any], typing. Union[str, bytes, bytearray]],
to_dict_kwargs: typing. Any,
):
Parameter
Type
encoder
collections.abc.Callable[[typing.Any], typing.Union[str, bytes, bytearray]]
to_dict_kwargs
typing.Any