Exception: Letterapp::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Letterapp::Error
- Defined in:
- lib/letterapp/client.rb
Overview
Raised for client misconfiguration and non-retryable API errors.
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(message, status: nil, body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status: nil, body: nil) ⇒ Error
Returns a new instance of Error.
18 19 20 21 22 |
# File 'lib/letterapp/client.rb', line 18 def initialize(, status: nil, body: nil) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
16 17 18 |
# File 'lib/letterapp/client.rb', line 16 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
16 17 18 |
# File 'lib/letterapp/client.rb', line 16 def status @status end |