Method: RightAws::AwsError#initialize
- Defined in:
- lib/awsbase/right_awsbase.rb
#initialize(errors = nil, http_code = nil, request_id = nil) ⇒ AwsError
Returns a new instance of AwsError.
532 533 534 535 536 537 |
# File 'lib/awsbase/right_awsbase.rb', line 532 def initialize(errors=nil, http_code=nil, request_id=nil) @errors = errors @request_id = request_id @http_code = http_code super(@errors.is_a?(Array) ? @errors.map{|code, msg| "#{code}: #{msg}"}.join("; ") : @errors.to_s) end |