Exception: RubyLlmMesh::BudgetExceededError
- Defined in:
- lib/ruby_llm_mesh/errors.rb
Instance Attribute Summary collapse
-
#consumed ⇒ Object
readonly
Returns the value of attribute consumed.
-
#dimension ⇒ Object
readonly
Returns the value of attribute dimension.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Instance Method Summary collapse
-
#initialize(message, dimension: nil, consumed: nil, limit: nil) ⇒ BudgetExceededError
constructor
A new instance of BudgetExceededError.
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(, dimension: nil, consumed: nil, limit: nil) @dimension = dimension @consumed = consumed @limit = limit super() end |
Instance Attribute Details
#consumed ⇒ Object (readonly)
Returns the value of attribute consumed.
25 26 27 |
# File 'lib/ruby_llm_mesh/errors.rb', line 25 def consumed @consumed end |
#dimension ⇒ Object (readonly)
Returns the value of attribute dimension.
25 26 27 |
# File 'lib/ruby_llm_mesh/errors.rb', line 25 def dimension @dimension end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
25 26 27 |
# File 'lib/ruby_llm_mesh/errors.rb', line 25 def limit @limit end |