Exception: RubyLlmMesh::BudgetExceededError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, dimension: nil, consumed: nil, limit: nil) ⇒ BudgetExceededError

Returns a new instance of BudgetExceededError.



27
28
29
30
31
32
# File 'lib/ruby_llm_mesh/errors.rb', line 27

def initialize(message, dimension: nil, consumed: nil, limit: nil)
  @dimension = dimension
  @consumed = consumed
  @limit = limit
  super(message)
end

Instance Attribute Details

#consumedObject (readonly)

Returns the value of attribute consumed.



25
26
27
# File 'lib/ruby_llm_mesh/errors.rb', line 25

def consumed
  @consumed
end

#dimensionObject (readonly)

Returns the value of attribute dimension.



25
26
27
# File 'lib/ruby_llm_mesh/errors.rb', line 25

def dimension
  @dimension
end

#limitObject (readonly)

Returns the value of attribute limit.



25
26
27
# File 'lib/ruby_llm_mesh/errors.rb', line 25

def limit
  @limit
end