# File lib/aws/errors.rb, line 98 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 parse_body(resp.body) super(req, resp, self.message) include_error_type else super() end end