Exception: Rainman::InvalidHandler

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rainman/exceptions.rb

Overview

InvalidHandler is raised when attempting to access a handler that has not yet been registered.

Instance Method Summary collapse

Constructor Details

#initialize(handler) ⇒ InvalidHandler

Returns a new instance of InvalidHandler.



13
14
15
16
# File 'lib/rainman/exceptions.rb', line 13

def initialize(handler)
  super "Handler #{handler.inspect} is invalid! Maybe you need to " <<
        "call 'register_handler #{handler.inspect}'?"
end