aws_sdk_verifiedpermissions/
error.rspub use ::aws_smithy_runtime_api::box_error::BoxError;
pub type SdkError<E, R = ::aws_smithy_runtime_api::client::orchestrator::HttpResponse> = ::aws_smithy_runtime_api::client::result::SdkError<E, R>;
pub use ::aws_smithy_runtime_api::client::result::ConnectorError;
pub use ::aws_smithy_types::error::operation::BuildError;
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
pub use ::aws_smithy_types::error::metadata::ErrorMetadata;
pub use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
#[derive(Debug)]
pub struct UnknownVariantError {
value: ::std::string::String,
}
impl UnknownVariantError {
pub(crate) fn new(value: impl ::std::convert::Into<::std::string::String>) -> Self {
Self { value: value.into() }
}
}
impl ::std::fmt::Display for UnknownVariantError {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::result::Result<(), ::std::fmt::Error> {
write!(f, "unknown enum variant: '{}'", self.value)
}
}
impl ::std::error::Error for UnknownVariantError {}
pub(crate) mod sealed_unhandled;