Exception: LemonwayOnboarding::Exceptions::RequestError
- Defined in:
- lib/lemonway_onboarding/exceptions.rb
Overview
Exception raised when a request was not successful
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code:, body:) ⇒ LemonwayOnboarding::Exceptions::RequestError
constructor
Initialize a request error.
Constructor Details
#initialize(message, code:, body:) ⇒ LemonwayOnboarding::Exceptions::RequestError
Initialize a request error. Contains response details.
18 19 20 21 22 |
# File 'lib/lemonway_onboarding/exceptions.rb', line 18 def initialize(, code:, body:) @code = code @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/lemonway_onboarding/exceptions.rb', line 10 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/lemonway_onboarding/exceptions.rb', line 10 def code @code end |