Exception: Wrappix::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Wrappix::Error
- Defined in:
- lib/wrappix.rb,
lib/wrappix/request.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(message, body = nil, status = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, body = nil, status = nil) ⇒ Error
Returns a new instance of Error.
68 69 70 71 72 |
# File 'lib/wrappix/request.rb', line 68 def initialize(, body = nil, status = nil) @body = body @status = status super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
66 67 68 |
# File 'lib/wrappix/request.rb', line 66 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
66 67 68 |
# File 'lib/wrappix/request.rb', line 66 def status @status end |