Exception: Desiru::TokenLimitError
- Inherits:
-
ModelError
- Object
- StandardError
- Error
- ModelError
- Desiru::TokenLimitError
- Defined in:
- lib/desiru/errors.rb
Instance Attribute Summary collapse
-
#token_count ⇒ Object
readonly
Returns the value of attribute token_count.
-
#token_limit ⇒ Object
readonly
Returns the value of attribute token_limit.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, token_count: nil, token_limit: nil) ⇒ TokenLimitError
constructor
A new instance of TokenLimitError.
Constructor Details
#initialize(message = nil, token_count: nil, token_limit: nil) ⇒ TokenLimitError
Returns a new instance of TokenLimitError.
62 63 64 65 66 |
# File 'lib/desiru/errors.rb', line 62 def initialize( = nil, token_count: nil, token_limit: nil, **) @token_count = token_count @token_limit = token_limit super(, **) end |
Instance Attribute Details
#token_count ⇒ Object (readonly)
Returns the value of attribute token_count.
60 61 62 |
# File 'lib/desiru/errors.rb', line 60 def token_count @token_count end |
#token_limit ⇒ Object (readonly)
Returns the value of attribute token_limit.
60 61 62 |
# File 'lib/desiru/errors.rb', line 60 def token_limit @token_limit end |