Enum aws_sdk_sso::Error
source · #[non_exhaustive]pub enum Error {
InvalidRequestException(InvalidRequestException),
ResourceNotFoundException(ResourceNotFoundException),
TooManyRequestsException(TooManyRequestsException),
UnauthorizedException(UnauthorizedException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRequestException(InvalidRequestException)
Indicates that a problem occurred with the input to the request. For example, a required parameter might be missing or out of range.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource doesn't exist.
TooManyRequestsException(TooManyRequestsException)
Indicates that the request is being made too frequently and is more than what the server can handle.
Indicates that the request is not authorized. This can happen due to an invalid access token in the request.
Unhandled(Unhandled)
👎Deprecated: Matching
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl From<GetRoleCredentialsError> for Error
impl From<GetRoleCredentialsError> for Error
source§fn from(err: GetRoleCredentialsError) -> Self
fn from(err: GetRoleCredentialsError) -> Self
Converts to this type from the input type.
source§impl From<ListAccountRolesError> for Error
impl From<ListAccountRolesError> for Error
source§fn from(err: ListAccountRolesError) -> Self
fn from(err: ListAccountRolesError) -> Self
Converts to this type from the input type.
source§impl From<ListAccountsError> for Error
impl From<ListAccountsError> for Error
source§fn from(err: ListAccountsError) -> Self
fn from(err: ListAccountsError) -> Self
Converts to this type from the input type.
source§impl From<LogoutError> for Error
impl From<LogoutError> for Error
source§fn from(err: LogoutError) -> Self
fn from(err: LogoutError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetRoleCredentialsError, R>> for Error
impl<R> From<SdkError<GetRoleCredentialsError, R>> for Error
source§fn from(err: SdkError<GetRoleCredentialsError, R>) -> Self
fn from(err: SdkError<GetRoleCredentialsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListAccountRolesError, R>> for Error
impl<R> From<SdkError<ListAccountRolesError, R>> for Error
source§fn from(err: SdkError<ListAccountRolesError, R>) -> Self
fn from(err: SdkError<ListAccountRolesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListAccountsError, R>> for Error
impl<R> From<SdkError<ListAccountsError, R>> for Error
source§fn from(err: SdkError<ListAccountsError, R>) -> Self
fn from(err: SdkError<ListAccountsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<LogoutError, R>> for Error
impl<R> From<SdkError<LogoutError, R>> for Error
source§fn from(err: SdkError<LogoutError, R>) -> Self
fn from(err: SdkError<LogoutError, R>) -> Self
Converts to this type from the input type.
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.