Exception: AmazonFPS::AWSError
- Inherits:
-
StandardError
- Object
- StandardError
- AmazonFPS::AWSError
- Defined in:
- lib/amazon_fps.rb
Instance Method Summary collapse
-
#initialize(method, errors) ⇒ AWSError
constructor
A new instance of AWSError.
- #to_s ⇒ Object
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_s ⇒ Object
85 86 87 |
# File 'lib/amazon_fps.rb', line 85 def to_s @message end |