Class: Dry::Transformer::FunctionNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/dry/transformer/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(function, source = nil) ⇒ FunctionNotFoundError

Returns a new instance of FunctionNotFoundError.



9
10
11
12
13
14
15
# File 'lib/dry/transformer/error.rb', line 9

def initialize(function, source = nil)
  if source
    super "No registered function #{source}[:#{function}]"
  else
    super "No globally registered function for #{function}"
  end
end