Exception: AmazonFPS::AWSError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/amazon_fps.rb

Instance Method Summary collapse

Constructor Details

#initialize(method, errors) ⇒ AWSError

Returns a new instance of AWSError.



76
77
78
79
80
81
82
83
# File 'lib/amazon_fps.rb', line 76

def initialize(method, errors)
  @message = String.new
  errors.each do |e|
    msg = sprintf("Error in AmazonFPS::%s -- [%s] %s\n", method, e.errorCode, e.reasonText)
    @message += msg
    $stderr.puts(msg)
  end
end

Instance Method Details

#to_sObject



85
86
87
# File 'lib/amazon_fps.rb', line 85

def to_s
  @message
end