Exception: Watchdog::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/watchdog/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(meth, from, to) ⇒ Error

Returns a new instance of Error.



3
4
5
6
# File 'lib/watchdog/error.rb', line 3

def initialize(meth, from, to)
  mtype = to.is_a?(Module) ? '#' : '.'
  super self.class::MESSAGE % [from, "#{to}#{mtype}#{meth}"]
end