Exception: HasHelpers::ServiceTrust::ClientHTTPError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- HasHelpers::ServiceTrust::ClientHTTPError
- Defined in:
- lib/has_helpers/service_trust/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body, message = nil) ⇒ ClientHTTPError
constructor
A new instance of ClientHTTPError.
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, = nil) @status = status @body = body super( || "HTTP #{status}") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
23 24 25 |
# File 'lib/has_helpers/service_trust/errors.rb', line 23 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
23 24 25 |
# File 'lib/has_helpers/service_trust/errors.rb', line 23 def status @status end |