# File lib/aws/errors.rb, line 101 def initialize(req = nil, resp = nil) if req.kind_of?(String) # makes it easier to test handling of modeled exceptions super(nil, nil, req) @message = req elsif req and resp super(req, resp, message) include_error_type parse_body(resp.body) else super() end end