Exception: RailsOrchestrator::ApiError
- Defined in:
- lib/rails_orchestrator/errors.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, status:, body:) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status:, body:) ⇒ ApiError
Returns a new instance of ApiError.
10 11 12 13 14 |
# File 'lib/rails_orchestrator/errors.rb', line 10 def initialize(, status:, body:) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
8 9 10 |
# File 'lib/rails_orchestrator/errors.rb', line 8 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/rails_orchestrator/errors.rb', line 8 def status @status end |