Exception: LlmCostTracker::StorageError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_error) ⇒ StorageError

Returns a new instance of StorageError.



31
32
33
34
35
# File 'lib/llm_cost_tracker/errors.rb', line 31

def initialize(original_error)
  @original_error = original_error

  super("Failed to store LLM cost event: #{original_error.class}: #{original_error.message}")
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



29
30
31
# File 'lib/llm_cost_tracker/errors.rb', line 29

def original_error
  @original_error
end