Exception: RailsOrchestrator::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/rails_orchestrator/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status:, body:)
  @status = status
  @body = body
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



8
9
10
# File 'lib/rails_orchestrator/errors.rb', line 8

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/rails_orchestrator/errors.rb', line 8

def status
  @status
end