Exception: TurboRAG::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/turborag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ Error

Returns a new instance of Error.



18
19
20
21
22
# File 'lib/turborag.rb', line 18

def initialize(status, body)
  @status = status
  @body = body
  super("TurboRAG HTTP #{status}: #{body}")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



16
17
18
# File 'lib/turborag.rb', line 16

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



16
17
18
# File 'lib/turborag.rb', line 16

def status
  @status
end