Exception: Cloudflare::CacheError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudflare_workers/cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, operation: nil) ⇒ CacheError

Returns a new instance of CacheError.



51
52
53
54
# File 'lib/cloudflare_workers/cache.rb', line 51

def initialize(message, operation: nil)
  @operation = operation
  super("[Cloudflare::Cache] op=#{operation || 'match'}: #{message}")
end

Instance Attribute Details

#operationObject (readonly)

Returns the value of attribute operation.



50
51
52
# File 'lib/cloudflare_workers/cache.rb', line 50

def operation
  @operation
end