Exception: Braintrust::HTTP::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/braintrust/base_client.rb

Direct Known Subclasses

APIConnectionError, APITimeoutError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, request:) ⇒ RequestError

Returns a new instance of RequestError.



344
345
346
347
# File 'lib/braintrust/base_client.rb', line 344

def initialize(message:, request:)
  super(message)
  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



342
343
344
# File 'lib/braintrust/base_client.rb', line 342

def request
  @request
end