class Aws::Errors::ServiceError
The base class for all errors returned by an Amazon Web Service. All ~400 level client errors and ~500 level server errors are raised as service errors. This indicates it was an error returned from the service and not one generated by the client.
Attributes
@return [String, nil]
@return [String]
@return [Seahorse::Client::RequestContext] The context of the request
that triggered the remote service to return this error.
@return [Aws::Structure]
Public Class Methods
Source
# File lib/aws-sdk-core/errors.rb, line 17 def initialize(context, message, data = Aws::EmptyStructure.new) @code = self.class.code @context = context @data = data @message = message && !message.empty? ? message : self.class.to_s super(@message) end
@param [Seahorse::Client::RequestContext] context @param [String, nil] message @param [Aws::Structure] data
Calls superclass method
Public Instance Methods
Source
# File lib/aws-sdk-core/errors.rb, line 43 def retryable? false end
@api private undocumented
Source
# File lib/aws-sdk-core/errors.rb, line 48 def throttling? false end
@api private undocumented