Exception: Concourse::Errors::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Concourse::Errors::ApiError
- Defined in:
- lib/concourse/errors.rb
Instance Method Summary collapse
-
#initialize(parameters) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(parameters) ⇒ ApiError
Returns a new instance of ApiError.
6 7 8 9 10 11 12 13 |
# File 'lib/concourse/errors.rb', line 6 def initialize(parameters) @request = parameters[:request] @response = parameters[:response] super("Request to #{@request.url} failed " \ "with status #{@response.status} " \ "and body #{@response.body}") end |