0.1.dev2192+g7c539c3.d20250403
flytekit.models.core.errors
Directory
Classes
| Class | Description |
|---|---|
ContainerError |
|
ErrorDocument |
flytekit.models.core.errors.ContainerError
class ContainerError(
code: str,
message: str,
kind: int,
origin: int,
timestamp: google.protobuf.timestamp_pb2.Timestamp,
worker: str,
)| Parameter | Type |
|---|---|
code |
str |
message |
str |
kind |
int |
origin |
int |
timestamp |
google.protobuf.timestamp_pb2.Timestamp |
worker |
str |
Methods
| Method | Description |
|---|---|
from_flyte_idl() |
|
serialize_to_string() |
|
short_string() |
:rtype: Text. |
to_flyte_idl() |
:rtype: flyteidl. |
verbose_string() |
:rtype: Text. |
from_flyte_idl()
def from_flyte_idl(
proto,
) -> e: ContainerError| Parameter | Type |
|---|---|
proto |
serialize_to_string()
def serialize_to_string()short_string()
def short_string():rtype: Text
to_flyte_idl()
def to_flyte_idl():rtype: flyteidl.core.errors_pb2.ContainerError
verbose_string()
def verbose_string():rtype: Text
Properties
| Property | Type | Description |
|---|---|---|
code |
:rtype: Text |
|
is_empty |
||
kind |
:rtype: int |
|
message |
:rtype: Text |
|
origin |
The origin of the error, an enum value from ExecutionError.ErrorKind |
|
timestamp |
The timestamp of the error, as number of seconds and nanos since Epoch |
|
worker |
The worker name where the error originated |
flytekit.models.core.errors.ErrorDocument
class ErrorDocument(
error,
)| Parameter | Type |
|---|---|
error |
Methods
| Method | Description |
|---|---|
from_flyte_idl() |
|
serialize_to_string() |
|
short_string() |
:rtype: Text. |
to_flyte_idl() |
:rtype: flyteidl. |
verbose_string() |
:rtype: Text. |
from_flyte_idl()
def from_flyte_idl(
proto,
) -> e: ErrorDocument| Parameter | Type |
|---|---|
proto |
serialize_to_string()
def serialize_to_string()short_string()
def short_string():rtype: Text
to_flyte_idl()
def to_flyte_idl():rtype: flyteidl.core.errors_pb2.ErrorDocument
verbose_string()
def verbose_string():rtype: Text
Properties
| Property | Type | Description |
|---|---|---|
error |
:rtype: ContainerError |
|
is_empty |