Module: Aws::CloudWatch::Errors
- Extended by:
- Errors::DynamicErrors
- Defined in:
- lib/aws-sdk-cloudwatch/errors.rb
Overview
When CloudWatch returns an error response, the Ruby SDK constructs and raises an error. These errors all extend Aws::CloudWatch::Errors::ServiceError < Errors::ServiceError
You can rescue all CloudWatch errors using ServiceError:
begin
# do stuff
rescue Aws::CloudWatch::Errors::ServiceError
# rescues all CloudWatch API errors
end
## Request Context ServiceError objects have a #context method that returns information about the request that generated the error. See Seahorse::Client::RequestContext for more information.
## Error Classes
-
* This error class is not used. `InvalidParameterInput` is used during parsing instead.
-
* This error class is not used. `ResourceNotFound` is used during parsing instead.
-
* This error class is not used. `InternalServiceError` is used during parsing instead.
-
* This error class is not used. `InvalidFormat` is used during parsing instead.
-
InvalidParameterCombinationException
* This error class is not used. `InvalidParameterCombination` is used during parsing instead.
-
InvalidParameterValueException
* This error class is not used. `InvalidParameterValue` is used during parsing instead.
-
* This error class is not used. `LimitExceeded` is used during parsing instead.
-
MissingRequiredParameterException
* This error class is not used. `MissingParameter` is used during parsing instead.
Additionally, error classes are dynamically generated for service errors based on the error code if they are not defined above. Some existing error classes may use a different class name than the one documented.
Defined Under Namespace
Classes: ConcurrentModificationException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceNotFound, ResourceNotFoundException