Exception: Zaikio::Loom::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Zaikio::Loom::Error
- Defined in:
- lib/zaikio/loom/error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, body:, status_code:) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, body:, status_code:) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 |
# File 'lib/zaikio/loom/error.rb', line 6 def initialize( = nil, body:, status_code:) super() @body = body @status_code = status_code end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/zaikio/loom/error.rb', line 4 def body @body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
4 5 6 |
# File 'lib/zaikio/loom/error.rb', line 4 def status_code @status_code end |