Exception: OpenRecycling::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenRecycling::ClientError
- Defined in:
- lib/open_recycling/client_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(code:, message:, uri:, body: nil) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(code:, message:, uri:, body: nil) ⇒ ClientError
Returns a new instance of ClientError.
7 8 9 10 11 12 |
# File 'lib/open_recycling/client_error.rb', line 7 def initialize(code:, message:, uri:, body: nil) super() @code = code @uri = uri @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/open_recycling/client_error.rb', line 5 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/open_recycling/client_error.rb', line 5 def code @code end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
5 6 7 |
# File 'lib/open_recycling/client_error.rb', line 5 def uri @uri end |