Exception: Concourse::Errors::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/concourse/errors.rb

Instance Method Summary collapse

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