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

- old
+ new

@@ -26,10 +26,11 @@ # # ## Error Classes # * {ClientLimitExceededException} # * {InvalidArgumentException} # * {InvalidCodecPrivateDataException} + # * {InvalidMediaFrameException} # * {MissingCodecPrivateDataException} # * {NoDataRetentionException} # * {NotAuthorizedException} # * {ResourceNotFoundException} # * {UnsupportedStreamMediaTypeException} @@ -73,9 +74,24 @@ class InvalidCodecPrivateDataException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisVideoArchivedMedia::Types::InvalidCodecPrivateDataException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class InvalidMediaFrameException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::KinesisVideoArchivedMedia::Types::InvalidMediaFrameException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]