Struct aws_sdk_transfer::types::ExecutionError
source · #[non_exhaustive]pub struct ExecutionError {
pub type: ExecutionErrorType,
pub message: String,
}
Expand description
Specifies the error message and type, for an error that occurs during the execution of the workflow.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: ExecutionErrorType
Specifies the error type.
-
ALREADY_EXISTS
: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location. -
BAD_REQUEST
: a general bad request: for example, a step that attempts to tag an EFS file returnsBAD_REQUEST
, as only S3 files can be tagged. -
CUSTOM_STEP_FAILED
: occurs when the custom step provided a callback that indicates failure. -
INTERNAL_SERVER_ERROR
: a catch-all error that can occur for a variety of reasons. -
NOT_FOUND
: occurs when a requested entity, for example a source file for a copy step, does not exist. -
PERMISSION_DENIED
: occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow. -
TIMEOUT
: occurs when the execution times out.You can set the
TimeoutSeconds
for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). -
THROTTLED
: occurs if you exceed the new execution refill rate of one workflow per second.
message: String
Specifies the descriptive message that corresponds to the ErrorType
.
Implementations§
source§impl ExecutionError
impl ExecutionError
sourcepub fn type(&self) -> &ExecutionErrorType
pub fn type(&self) -> &ExecutionErrorType
Specifies the error type.
-
ALREADY_EXISTS
: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location. -
BAD_REQUEST
: a general bad request: for example, a step that attempts to tag an EFS file returnsBAD_REQUEST
, as only S3 files can be tagged. -
CUSTOM_STEP_FAILED
: occurs when the custom step provided a callback that indicates failure. -
INTERNAL_SERVER_ERROR
: a catch-all error that can occur for a variety of reasons. -
NOT_FOUND
: occurs when a requested entity, for example a source file for a copy step, does not exist. -
PERMISSION_DENIED
: occurs if your policy does not contain the correct permissions to complete one or more of the steps in the workflow. -
TIMEOUT
: occurs when the execution times out.You can set the
TimeoutSeconds
for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). -
THROTTLED
: occurs if you exceed the new execution refill rate of one workflow per second.
source§impl ExecutionError
impl ExecutionError
sourcepub fn builder() -> ExecutionErrorBuilder
pub fn builder() -> ExecutionErrorBuilder
Creates a new builder-style object to manufacture ExecutionError
.
Trait Implementations§
source§impl Clone for ExecutionError
impl Clone for ExecutionError
source§fn clone(&self) -> ExecutionError
fn clone(&self) -> ExecutionError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecutionError
impl Debug for ExecutionError
source§impl PartialEq for ExecutionError
impl PartialEq for ExecutionError
source§fn eq(&self, other: &ExecutionError) -> bool
fn eq(&self, other: &ExecutionError) -> bool
self
and other
values to be equal, and is used
by ==
.