lib/aws-sdk-sms/errors.rb in aws-sdk-sms-1.23.0 vs lib/aws-sdk-sms/errors.rb in aws-sdk-sms-1.24.0
- old
+ new
@@ -25,10 +25,11 @@
# 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
+ # * {DryRunOperationException}
# * {InternalError}
# * {InvalidParameterException}
# * {MissingRequiredParameterException}
# * {NoConnectorsAvailableException}
# * {OperationNotPermittedException}
@@ -42,9 +43,24 @@
# 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 DryRunOperationException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::SMS::Types::DryRunOperationException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
class InternalError < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message