Exception: CircleCIReporter::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/circleci_reporter/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, resp) ⇒ RequestError

Returns a new instance of RequestError.

Parameters:

  • message (String)
  • resp (Faraday::Response)


11
12
13
14
15
# File 'lib/circleci_reporter/errors.rb', line 11

def initialize(message, resp)
  @message = message
  @resp = resp
  super(message)
end

Instance Attribute Details

#respObject (readonly)

Returns the value of attribute resp.



7
8
9
# File 'lib/circleci_reporter/errors.rb', line 7

def resp
  @resp
end