Exception: Cloudflare::BindingError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::BindingError
- Defined in:
- lib/cloudflare_workers.rb
Overview
Base error class for Cloudflare binding failures. Wraps the JS error message so Ruby rescue can handle it meaningfully.
Instance Attribute Summary collapse
-
#binding_type ⇒ Object
readonly
Returns the value of attribute binding_type.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(message, binding_type: nil, operation: nil) ⇒ BindingError
constructor
A new instance of BindingError.
Constructor Details
#initialize(message, binding_type: nil, operation: nil) ⇒ BindingError
Returns a new instance of BindingError.
438 439 440 441 442 |
# File 'lib/cloudflare_workers.rb', line 438 def initialize(, binding_type: nil, operation: nil) @binding_type = binding_type @operation = operation super("[Cloudflare::#{binding_type}] #{operation}: #{}") end |
Instance Attribute Details
#binding_type ⇒ Object (readonly)
Returns the value of attribute binding_type.
436 437 438 |
# File 'lib/cloudflare_workers.rb', line 436 def binding_type @binding_type end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
436 437 438 |
# File 'lib/cloudflare_workers.rb', line 436 def operation @operation end |