Exception: Phronomy::FilterBlockError

Inherits:
Error
  • Object
show all
Defined in:
lib/phronomy.rb

Overview

Raised by a Phronomy::Filter::Base subclass when the filter rejects a value without transforming it (blocking the pipeline).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, filter: nil) ⇒ FilterBlockError

Returns a new instance of FilterBlockError.



96
97
98
99
# File 'lib/phronomy.rb', line 96

def initialize(message, filter: nil)
  super(message)
  @filter = filter
end

Instance Attribute Details

#filterObject (readonly)



94
95
96
# File 'lib/phronomy.rb', line 94

def filter
  @filter
end