Exception: Fluent::UndefinedPipeMethod

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fluent/pipeline/errors.rb

Constant Summary collapse

MESSAGE_LAYOUT =
'Undefined method `%{method_name}` for pipe'

Instance Method Summary collapse

Constructor Details

#initialize(method_name) ⇒ UndefinedPipeMethod

Returns a new instance of UndefinedPipeMethod.



5
6
7
8
# File 'lib/fluent/pipeline/errors.rb', line 5

def initialize(method_name)
  @method_name = method_name
  super(message)
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/fluent/pipeline/errors.rb', line 10

def message
  format(MESSAGE_LAYOUT, method_name: method_name)
end