Exception: Cloudflare::AIError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::AIError
- Defined in:
- lib/cloudflare_workers/ai.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(message, model: nil, operation: nil) ⇒ AIError
constructor
A new instance of AIError.
Constructor Details
#initialize(message, model: nil, operation: nil) ⇒ AIError
Returns a new instance of AIError.
32 33 34 35 36 |
# File 'lib/cloudflare_workers/ai.rb', line 32 def initialize(, model: nil, operation: nil) @model = model @operation = operation super("[Cloudflare::AI] model=#{model || '?'} op=#{operation || 'run'}: #{}") end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
31 32 33 |
# File 'lib/cloudflare_workers/ai.rb', line 31 def model @model end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
31 32 33 |
# File 'lib/cloudflare_workers/ai.rb', line 31 def operation @operation end |