lib/aws-sdk-kinesisvideoarchivedmedia/errors.rb in aws-sdk-kinesisvideoarchivedmedia-1.20.0 vs lib/aws-sdk-kinesisvideoarchivedmedia/errors.rb in aws-sdk-kinesisvideoarchivedmedia-1.21.0

- old
+ new

@@ -4,10 +4,40 @@ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::KinesisVideoArchivedMedia + + # When KinesisVideoArchivedMedia returns an error response, the Ruby SDK constructs and raises an error. + # These errors all extend Aws::KinesisVideoArchivedMedia::Errors::ServiceError < {Aws::Errors::ServiceError} + # + # You can rescue all KinesisVideoArchivedMedia errors using ServiceError: + # + # begin + # # do stuff + # rescue Aws::KinesisVideoArchivedMedia::Errors::ServiceError + # # rescues all KinesisVideoArchivedMedia API errors + # end + # + # + # ## Request Context + # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns + # information about the request that generated the error. + # See {Seahorse::Client::RequestContext} for more information. + # + # ## Error Classes + # * {ClientLimitExceededException} + # * {InvalidArgumentException} + # * {InvalidCodecPrivateDataException} + # * {MissingCodecPrivateDataException} + # * {NoDataRetentionException} + # * {NotAuthorizedException} + # * {ResourceNotFoundException} + # * {UnsupportedStreamMediaTypeException} + # + # Additionally, error classes are dynamically generated for service errors based on the error code + # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class ClientLimitExceededException < ServiceError @@ -21,11 +51,10 @@ # @return [String] def message @message || @data[:message] end - end class InvalidArgumentException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -37,11 +66,10 @@ # @return [String] def message @message || @data[:message] end - end class InvalidCodecPrivateDataException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -53,11 +81,10 @@ # @return [String] def message @message || @data[:message] end - end class MissingCodecPrivateDataException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -69,11 +96,10 @@ # @return [String] def message @message || @data[:message] end - end class NoDataRetentionException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -85,11 +111,10 @@ # @return [String] def message @message || @data[:message] end - end class NotAuthorizedException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -101,11 +126,10 @@ # @return [String] def message @message || @data[:message] end - end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -117,11 +141,10 @@ # @return [String] def message @message || @data[:message] end - end class UnsupportedStreamMediaTypeException < ServiceError # @param [Seahorse::Client::RequestContext] context @@ -133,10 +156,9 @@ # @return [String] def message @message || @data[:message] end - end end end