Struct aws_sdk_servicequotas::types::ErrorReason
source · #[non_exhaustive]pub struct ErrorReason {
pub error_code: Option<ErrorCode>,
pub error_message: Option<String>,
}
Expand description
An error that explains why an action did not succeed.
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.error_code: Option<ErrorCode>
Service Quotas returns the following error values:
-
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota. -
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas. -
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available. -
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
error_message: Option<String>
The error message.
Implementations§
source§impl ErrorReason
impl ErrorReason
sourcepub fn error_code(&self) -> Option<&ErrorCode>
pub fn error_code(&self) -> Option<&ErrorCode>
Service Quotas returns the following error values:
-
DEPENDENCY_ACCESS_DENIED_ERROR
- The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota. -
DEPENDENCY_THROTTLING_ERROR
- The Amazon Web Service is throttling Service Quotas. -
DEPENDENCY_SERVICE_ERROR
- The Amazon Web Service is not available. -
SERVICE_QUOTA_NOT_AVAILABLE_ERROR
- There was an error in Service Quotas.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The error message.
source§impl ErrorReason
impl ErrorReason
sourcepub fn builder() -> ErrorReasonBuilder
pub fn builder() -> ErrorReasonBuilder
Creates a new builder-style object to manufacture ErrorReason
.
Trait Implementations§
source§impl Clone for ErrorReason
impl Clone for ErrorReason
source§fn clone(&self) -> ErrorReason
fn clone(&self) -> ErrorReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ErrorReason
impl Debug for ErrorReason
source§impl PartialEq for ErrorReason
impl PartialEq for ErrorReason
source§fn eq(&self, other: &ErrorReason) -> bool
fn eq(&self, other: &ErrorReason) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ErrorReason
Auto Trait Implementations§
impl Freeze for ErrorReason
impl RefUnwindSafe for ErrorReason
impl Send for ErrorReason
impl Sync for ErrorReason
impl Unpin for ErrorReason
impl UnwindSafe for ErrorReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more