Enum aws_sdk_kafka::Error

source ·
#[non_exhaustive]
pub enum Error { BadRequestException(BadRequestException), ConflictException(ConflictException), ForbiddenException(ForbiddenException), InternalServerErrorException(InternalServerErrorException), NotFoundException(NotFoundException), ServiceUnavailableException(ServiceUnavailableException), 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.
§

BadRequestException(BadRequestException)

Returns information about an error.

§

ConflictException(ConflictException)

Returns information about an error.

§

ForbiddenException(ForbiddenException)

Returns information about an error.

§

InternalServerErrorException(InternalServerErrorException)

Returns information about an error.

§

NotFoundException(NotFoundException)

Returns information about an error.

§

ServiceUnavailableException(ServiceUnavailableException)

Returns information about an error.

§

TooManyRequestsException(TooManyRequestsException)

Returns information about an error.

§

UnauthorizedException(UnauthorizedException)

Returns information about an error.

§

Unhandled(Unhandled)

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<BatchAssociateScramSecretError> for Error

source§

fn from(err: BatchAssociateScramSecretError) -> Self

Converts to this type from the input type.
source§

impl From<BatchDisassociateScramSecretError> for Error

source§

fn from(err: BatchDisassociateScramSecretError) -> Self

Converts to this type from the input type.
source§

impl From<CreateClusterError> for Error

source§

fn from(err: CreateClusterError) -> Self

Converts to this type from the input type.
source§

impl From<CreateClusterV2Error> for Error

source§

fn from(err: CreateClusterV2Error) -> Self

Converts to this type from the input type.
source§

impl From<CreateConfigurationError> for Error

source§

fn from(err: CreateConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteClusterError> for Error

source§

fn from(err: DeleteClusterError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteConfigurationError> for Error

source§

fn from(err: DeleteConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeClusterError> for Error

source§

fn from(err: DescribeClusterError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeClusterOperationError> for Error

source§

fn from(err: DescribeClusterOperationError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeClusterV2Error> for Error

source§

fn from(err: DescribeClusterV2Error) -> Self

Converts to this type from the input type.
source§

impl From<DescribeConfigurationError> for Error

source§

fn from(err: DescribeConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeConfigurationRevisionError> for Error

source§

fn from(err: DescribeConfigurationRevisionError) -> Self

Converts to this type from the input type.
source§

impl From<GetBootstrapBrokersError> for Error

source§

fn from(err: GetBootstrapBrokersError) -> Self

Converts to this type from the input type.
source§

impl From<GetCompatibleKafkaVersionsError> for Error

source§

fn from(err: GetCompatibleKafkaVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListClusterOperationsError> for Error

source§

fn from(err: ListClusterOperationsError) -> Self

Converts to this type from the input type.
source§

impl From<ListClustersError> for Error

source§

fn from(err: ListClustersError) -> Self

Converts to this type from the input type.
source§

impl From<ListClustersV2Error> for Error

source§

fn from(err: ListClustersV2Error) -> Self

Converts to this type from the input type.
source§

impl From<ListConfigurationRevisionsError> for Error

source§

fn from(err: ListConfigurationRevisionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListConfigurationsError> for Error

source§

fn from(err: ListConfigurationsError) -> Self

Converts to this type from the input type.
source§

impl From<ListKafkaVersionsError> for Error

source§

fn from(err: ListKafkaVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListNodesError> for Error

source§

fn from(err: ListNodesError) -> Self

Converts to this type from the input type.
source§

impl From<ListScramSecretsError> for Error

source§

fn from(err: ListScramSecretsError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<RebootBrokerError> for Error

source§

fn from(err: RebootBrokerError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchAssociateScramSecretError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchAssociateScramSecretError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchDisassociateScramSecretError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchDisassociateScramSecretError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateClusterError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateClusterV2Error, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateClusterV2Error, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteClusterError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeClusterError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeClusterOperationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeClusterOperationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeClusterV2Error, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeClusterV2Error, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeConfigurationRevisionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeConfigurationRevisionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetBootstrapBrokersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetBootstrapBrokersError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetCompatibleKafkaVersionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetCompatibleKafkaVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListClusterOperationsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListClusterOperationsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListClustersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListClustersError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListClustersV2Error, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListClustersV2Error, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListConfigurationRevisionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListConfigurationRevisionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListConfigurationsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListConfigurationsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListKafkaVersionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListKafkaVersionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListNodesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListNodesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListScramSecretsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListScramSecretsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<RebootBrokerError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<RebootBrokerError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateBrokerCountError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateBrokerCountError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateBrokerStorageError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateBrokerStorageError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateBrokerTypeError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateBrokerTypeError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateClusterConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateClusterConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateClusterKafkaVersionError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateClusterKafkaVersionError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateConnectivityError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateConnectivityError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateMonitoringError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateMonitoringError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateSecurityError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateSecurityError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateStorageError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateStorageError, R>) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateBrokerCountError> for Error

source§

fn from(err: UpdateBrokerCountError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateBrokerStorageError> for Error

source§

fn from(err: UpdateBrokerStorageError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateBrokerTypeError> for Error

source§

fn from(err: UpdateBrokerTypeError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateClusterConfigurationError> for Error

source§

fn from(err: UpdateClusterConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateClusterKafkaVersionError> for Error

source§

fn from(err: UpdateClusterKafkaVersionError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateConfigurationError> for Error

source§

fn from(err: UpdateConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateConnectivityError> for Error

source§

fn from(err: UpdateConnectivityError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateMonitoringError> for Error

source§

fn from(err: UpdateMonitoringError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateSecurityError> for Error

source§

fn from(err: UpdateSecurityError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateStorageError> for Error

source§

fn from(err: UpdateStorageError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more