#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::error::AccessDeniedException),
ConflictException(crate::error::ConflictException),
InternalServerException(crate::error::InternalServerException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::error::ServiceQuotaExceededException),
ValidationException(crate::error::ValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccessDeniedException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateApplicationInstanceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateApplicationInstanceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::CreateApplicationInstanceError> for Error {
fn from(err: crate::error::CreateApplicationInstanceError) -> Self {
match err.kind {
crate::error::CreateApplicationInstanceErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::CreateApplicationInstanceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::CreateApplicationInstanceErrorKind::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::error::CreateApplicationInstanceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::CreateApplicationInstanceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateJobForDevicesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateJobForDevicesError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::CreateJobForDevicesError> for Error {
fn from(err: crate::error::CreateJobForDevicesError) -> Self {
match err.kind {
crate::error::CreateJobForDevicesErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::CreateJobForDevicesErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreateJobForDevicesErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::CreateJobForDevicesErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::CreateJobForDevicesErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::CreateJobForDevicesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateNodeFromTemplateJobError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateNodeFromTemplateJobError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::CreateNodeFromTemplateJobError> for Error {
fn from(err: crate::error::CreateNodeFromTemplateJobError) -> Self {
match err.kind {
crate::error::CreateNodeFromTemplateJobErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::CreateNodeFromTemplateJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreateNodeFromTemplateJobErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::CreateNodeFromTemplateJobErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::CreateNodeFromTemplateJobErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreatePackageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreatePackageError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::CreatePackageError> for Error {
fn from(err: crate::error::CreatePackageError) -> Self {
match err.kind {
crate::error::CreatePackageErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::CreatePackageErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreatePackageErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::CreatePackageErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::CreatePackageErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreatePackageImportJobError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreatePackageImportJobError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::CreatePackageImportJobError> for Error {
fn from(err: crate::error::CreatePackageImportJobError) -> Self {
match err.kind {
crate::error::CreatePackageImportJobErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::CreatePackageImportJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::CreatePackageImportJobErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::CreatePackageImportJobErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::CreatePackageImportJobErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteDeviceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteDeviceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DeleteDeviceError> for Error {
fn from(err: crate::error::DeleteDeviceError) -> Self {
match err.kind {
crate::error::DeleteDeviceErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DeleteDeviceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeleteDeviceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DeleteDeviceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DeleteDeviceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DeleteDeviceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeletePackageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeletePackageError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DeletePackageError> for Error {
fn from(err: crate::error::DeletePackageError) -> Self {
match err.kind {
crate::error::DeletePackageErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DeletePackageErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeletePackageErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DeletePackageErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DeletePackageErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DeletePackageErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeregisterPackageVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeregisterPackageVersionError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DeregisterPackageVersionError> for Error {
fn from(err: crate::error::DeregisterPackageVersionError) -> Self {
match err.kind {
crate::error::DeregisterPackageVersionErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DeregisterPackageVersionErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DeregisterPackageVersionErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DeregisterPackageVersionErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DeregisterPackageVersionErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DeregisterPackageVersionErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribeApplicationInstanceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DescribeApplicationInstanceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribeApplicationInstanceError> for Error {
fn from(err: crate::error::DescribeApplicationInstanceError) -> Self {
match err.kind {
crate::error::DescribeApplicationInstanceErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribeApplicationInstanceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribeApplicationInstanceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribeApplicationInstanceErrorKind::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::error::DescribeApplicationInstanceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribeApplicationInstanceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<crate::error::DescribeApplicationInstanceDetailsError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::error::DescribeApplicationInstanceDetailsError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribeApplicationInstanceDetailsError> for Error {
fn from(err: crate::error::DescribeApplicationInstanceDetailsError) -> Self {
match err.kind {
crate::error::DescribeApplicationInstanceDetailsErrorKind::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::error::DescribeApplicationInstanceDetailsErrorKind::ConflictException(inner) => Error::ConflictException(inner),
crate::error::DescribeApplicationInstanceDetailsErrorKind::InternalServerException(inner) => Error::InternalServerException(inner),
crate::error::DescribeApplicationInstanceDetailsErrorKind::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::error::DescribeApplicationInstanceDetailsErrorKind::ValidationException(inner) => Error::ValidationException(inner),
crate::error::DescribeApplicationInstanceDetailsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribeDeviceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DescribeDeviceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribeDeviceError> for Error {
fn from(err: crate::error::DescribeDeviceError) -> Self {
match err.kind {
crate::error::DescribeDeviceErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribeDeviceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribeDeviceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DescribeDeviceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribeDeviceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribeDeviceJobError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DescribeDeviceJobError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribeDeviceJobError> for Error {
fn from(err: crate::error::DescribeDeviceJobError) -> Self {
match err.kind {
crate::error::DescribeDeviceJobErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribeDeviceJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribeDeviceJobErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribeDeviceJobErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DescribeDeviceJobErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribeDeviceJobErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribeNodeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DescribeNodeError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribeNodeError> for Error {
fn from(err: crate::error::DescribeNodeError) -> Self {
match err.kind {
crate::error::DescribeNodeErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribeNodeErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribeNodeErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribeNodeErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DescribeNodeErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribeNodeErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribeNodeFromTemplateJobError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DescribeNodeFromTemplateJobError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribeNodeFromTemplateJobError> for Error {
fn from(err: crate::error::DescribeNodeFromTemplateJobError) -> Self {
match err.kind {
crate::error::DescribeNodeFromTemplateJobErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribeNodeFromTemplateJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribeNodeFromTemplateJobErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribeNodeFromTemplateJobErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribeNodeFromTemplateJobErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribePackageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DescribePackageError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribePackageError> for Error {
fn from(err: crate::error::DescribePackageError) -> Self {
match err.kind {
crate::error::DescribePackageErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribePackageErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribePackageErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribePackageErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DescribePackageErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribePackageErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribePackageImportJobError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DescribePackageImportJobError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribePackageImportJobError> for Error {
fn from(err: crate::error::DescribePackageImportJobError) -> Self {
match err.kind {
crate::error::DescribePackageImportJobErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribePackageImportJobErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribePackageImportJobErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribePackageImportJobErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribePackageImportJobErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DescribePackageVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DescribePackageVersionError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::DescribePackageVersionError> for Error {
fn from(err: crate::error::DescribePackageVersionError) -> Self {
match err.kind {
crate::error::DescribePackageVersionErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::DescribePackageVersionErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::DescribePackageVersionErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::DescribePackageVersionErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DescribePackageVersionErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::DescribePackageVersionErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::error::ListApplicationInstanceDependenciesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::error::ListApplicationInstanceDependenciesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListApplicationInstanceDependenciesError> for Error {
fn from(err: crate::error::ListApplicationInstanceDependenciesError) -> Self {
match err.kind {
crate::error::ListApplicationInstanceDependenciesErrorKind::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::error::ListApplicationInstanceDependenciesErrorKind::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::error::ListApplicationInstanceDependenciesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R>
From<
aws_smithy_http::result::SdkError<
crate::error::ListApplicationInstanceNodeInstancesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::error::ListApplicationInstanceNodeInstancesError,
R,
>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListApplicationInstanceNodeInstancesError> for Error {
fn from(err: crate::error::ListApplicationInstanceNodeInstancesError) -> Self {
match err.kind {
crate::error::ListApplicationInstanceNodeInstancesErrorKind::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::error::ListApplicationInstanceNodeInstancesErrorKind::InternalServerException(inner) => Error::InternalServerException(inner),
crate::error::ListApplicationInstanceNodeInstancesErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListApplicationInstancesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListApplicationInstancesError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListApplicationInstancesError> for Error {
fn from(err: crate::error::ListApplicationInstancesError) -> Self {
match err.kind {
crate::error::ListApplicationInstancesErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListApplicationInstancesErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListApplicationInstancesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListDevicesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListDevicesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListDevicesError> for Error {
fn from(err: crate::error::ListDevicesError) -> Self {
match err.kind {
crate::error::ListDevicesErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListDevicesErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListDevicesErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListDevicesErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListDevicesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListDevicesJobsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListDevicesJobsError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListDevicesJobsError> for Error {
fn from(err: crate::error::ListDevicesJobsError) -> Self {
match err.kind {
crate::error::ListDevicesJobsErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListDevicesJobsErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListDevicesJobsErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListDevicesJobsErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListDevicesJobsErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListDevicesJobsErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListNodeFromTemplateJobsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListNodeFromTemplateJobsError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListNodeFromTemplateJobsError> for Error {
fn from(err: crate::error::ListNodeFromTemplateJobsError) -> Self {
match err.kind {
crate::error::ListNodeFromTemplateJobsErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListNodeFromTemplateJobsErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListNodeFromTemplateJobsErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListNodeFromTemplateJobsErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListNodeFromTemplateJobsErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListNodesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListNodesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListNodesError> for Error {
fn from(err: crate::error::ListNodesError) -> Self {
match err.kind {
crate::error::ListNodesErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListNodesErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListNodesErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListNodesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPackageImportJobsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListPackageImportJobsError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListPackageImportJobsError> for Error {
fn from(err: crate::error::ListPackageImportJobsError) -> Self {
match err.kind {
crate::error::ListPackageImportJobsErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListPackageImportJobsErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListPackageImportJobsErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListPackageImportJobsErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListPackageImportJobsErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPackagesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListPackagesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListPackagesError> for Error {
fn from(err: crate::error::ListPackagesError) -> Self {
match err.kind {
crate::error::ListPackagesErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ListPackagesErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ListPackagesErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListPackagesErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListPackagesErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListPackagesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ListTagsForResourceError> for Error {
fn from(err: crate::error::ListTagsForResourceError) -> Self {
match err.kind {
crate::error::ListTagsForResourceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListTagsForResourceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ProvisionDeviceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ProvisionDeviceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::ProvisionDeviceError> for Error {
fn from(err: crate::error::ProvisionDeviceError) -> Self {
match err.kind {
crate::error::ProvisionDeviceErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::ProvisionDeviceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::ProvisionDeviceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::ProvisionDeviceErrorKind::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::error::ProvisionDeviceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::ProvisionDeviceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::RegisterPackageVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::RegisterPackageVersionError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::RegisterPackageVersionError> for Error {
fn from(err: crate::error::RegisterPackageVersionError) -> Self {
match err.kind {
crate::error::RegisterPackageVersionErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::RegisterPackageVersionErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::RegisterPackageVersionErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::RegisterPackageVersionErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::RegisterPackageVersionErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::RemoveApplicationInstanceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::RemoveApplicationInstanceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::RemoveApplicationInstanceError> for Error {
fn from(err: crate::error::RemoveApplicationInstanceError) -> Self {
match err.kind {
crate::error::RemoveApplicationInstanceErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::RemoveApplicationInstanceErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::RemoveApplicationInstanceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::RemoveApplicationInstanceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::RemoveApplicationInstanceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::RemoveApplicationInstanceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::TagResourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::TagResourceError> for Error {
fn from(err: crate::error::TagResourceError) -> Self {
match err.kind {
crate::error::TagResourceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::TagResourceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::TagResourceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UntagResourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::UntagResourceError> for Error {
fn from(err: crate::error::UntagResourceError) -> Self {
match err.kind {
crate::error::UntagResourceErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::UntagResourceErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::UntagResourceErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateDeviceMetadataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateDeviceMetadataError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
}
impl From<crate::error::UpdateDeviceMetadataError> for Error {
fn from(err: crate::error::UpdateDeviceMetadataError) -> Self {
match err.kind {
crate::error::UpdateDeviceMetadataErrorKind::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::error::UpdateDeviceMetadataErrorKind::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::error::UpdateDeviceMetadataErrorKind::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::error::UpdateDeviceMetadataErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::UpdateDeviceMetadataErrorKind::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::error::UpdateDeviceMetadataErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl std::error::Error for Error {}