Exception: Chroma::APIError

Inherits:
ChromaError show all
Defined in:
lib/chroma/errors.rb

Overview

APIError is a generic error that may be raised in cases where none of the other named errors cover the problem.

Instance Attribute Summary

Attributes inherited from ChromaError

#body, #error, #message, #response, #status

Instance Method Summary collapse

Methods inherited from ChromaError

#to_s

Constructor Details

#initialize(message = nil, status: nil, body: nil, response: nil) ⇒ APIError

Returns a new instance of APIError.



57
58
59
60
61
# File 'lib/chroma/errors.rb', line 57

def initialize(message = nil, status: nil, body: nil, response: nil)
  super

  decode_message
end