#[non_exhaustive]pub enum GetCommentReactionsError {
CommentDeletedException(CommentDeletedException),
CommentDoesNotExistException(CommentDoesNotExistException),
CommentIdRequiredException(CommentIdRequiredException),
InvalidCommentIdException(InvalidCommentIdException),
InvalidContinuationTokenException(InvalidContinuationTokenException),
InvalidMaxResultsException(InvalidMaxResultsException),
InvalidReactionUserArnException(InvalidReactionUserArnException),
Unhandled(Unhandled),
}Expand description
Error type for the GetCommentReactionsError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CommentDeletedException(CommentDeletedException)
This comment has already been deleted. You cannot edit or delete a deleted comment.
CommentDoesNotExistException(CommentDoesNotExistException)
No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.
CommentIdRequiredException(CommentIdRequiredException)
The comment ID is missing or null. A comment ID is required.
InvalidCommentIdException(InvalidCommentIdException)
The comment ID is not in a valid format. Make sure that you have provided the full comment ID.
InvalidContinuationTokenException(InvalidContinuationTokenException)
The specified continuation token is not valid.
InvalidMaxResultsException(InvalidMaxResultsException)
The specified number of maximum results is not valid.
InvalidReactionUserArnException(InvalidReactionUserArnException)
The Amazon Resource Name (ARN) of the user or identity is not valid.
Unhandled(Unhandled)
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).
Implementations§
source§impl GetCommentReactionsError
impl GetCommentReactionsError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the GetCommentReactionsError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetCommentReactionsError::Unhandled variant from an ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_comment_deleted_exception(&self) -> bool
pub fn is_comment_deleted_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::CommentDeletedException.
sourcepub fn is_comment_does_not_exist_exception(&self) -> bool
pub fn is_comment_does_not_exist_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::CommentDoesNotExistException.
sourcepub fn is_comment_id_required_exception(&self) -> bool
pub fn is_comment_id_required_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::CommentIdRequiredException.
sourcepub fn is_invalid_comment_id_exception(&self) -> bool
pub fn is_invalid_comment_id_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::InvalidCommentIdException.
sourcepub fn is_invalid_continuation_token_exception(&self) -> bool
pub fn is_invalid_continuation_token_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::InvalidContinuationTokenException.
sourcepub fn is_invalid_max_results_exception(&self) -> bool
pub fn is_invalid_max_results_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::InvalidMaxResultsException.
sourcepub fn is_invalid_reaction_user_arn_exception(&self) -> bool
pub fn is_invalid_reaction_user_arn_exception(&self) -> bool
Returns true if the error kind is GetCommentReactionsError::InvalidReactionUserArnException.
Trait Implementations§
source§impl CreateUnhandledError for GetCommentReactionsError
impl CreateUnhandledError for GetCommentReactionsError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source and error metadata.source§impl Debug for GetCommentReactionsError
impl Debug for GetCommentReactionsError
source§impl Display for GetCommentReactionsError
impl Display for GetCommentReactionsError
source§impl Error for GetCommentReactionsError
impl Error for GetCommentReactionsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<GetCommentReactionsError> for Error
impl From<GetCommentReactionsError> for Error
source§fn from(err: GetCommentReactionsError) -> Self
fn from(err: GetCommentReactionsError) -> Self
source§impl ProvideErrorMetadata for GetCommentReactionsError
impl ProvideErrorMetadata for GetCommentReactionsError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for GetCommentReactionsError
impl RequestId for GetCommentReactionsError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.