Exception: Cloudflare::DurableObjectError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::DurableObjectError
- Defined in:
- lib/cloudflare_workers/durable_object.rb
Instance Attribute Summary collapse
-
#do_class ⇒ Object
readonly
Returns the value of attribute do_class.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(message, operation: nil, do_class: nil) ⇒ DurableObjectError
constructor
A new instance of DurableObjectError.
Constructor Details
#initialize(message, operation: nil, do_class: nil) ⇒ DurableObjectError
Returns a new instance of DurableObjectError.
49 50 51 52 53 |
# File 'lib/cloudflare_workers/durable_object.rb', line 49 def initialize(, operation: nil, do_class: nil) @operation = operation @do_class = do_class super("[Cloudflare::DurableObject] class=#{do_class || '?'} op=#{operation || 'fetch'}: #{}") end |
Instance Attribute Details
#do_class ⇒ Object (readonly)
Returns the value of attribute do_class.
48 49 50 |
# File 'lib/cloudflare_workers/durable_object.rb', line 48 def do_class @do_class end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
48 49 50 |
# File 'lib/cloudflare_workers/durable_object.rb', line 48 def operation @operation end |