Exception: Expressir::Express::Error::FormatterMethodMissingError

Inherits:
ExpressError
  • Object
show all
Defined in:
lib/expressir/express/error.rb

Overview

Error raised when a required method is missing

Instance Method Summary collapse

Constructor Details

#initialize(formatter, method = nil) ⇒ FormatterMethodMissingError

Initialize a new FormatterMethodMissingError

Parameters:

  • formatter (String)

    Name of the formatter

  • method (String) (defaults to: nil)

    Name of the missing method



63
64
65
66
# File 'lib/expressir/express/error.rb', line 63

def initialize(formatter, method = nil)
  method_msg = method ? " Missing method: #{method}" : " Missing required method."
  super("Formatter error in #{formatter}.#{method_msg}")
end