Exception: HasHelpers::ServiceTrust::ClientHTTPError

Inherits:
ClientError
  • Object
show all
Defined in:
lib/has_helpers/service_trust/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body, message = nil) ⇒ ClientHTTPError

Returns a new instance of ClientHTTPError.



25
26
27
28
29
# File 'lib/has_helpers/service_trust/errors.rb', line 25

def initialize(status, body, message = nil)
  @status = status
  @body = body
  super(message || "HTTP #{status}")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



23
24
25
# File 'lib/has_helpers/service_trust/errors.rb', line 23

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



23
24
25
# File 'lib/has_helpers/service_trust/errors.rb', line 23

def status
  @status
end