Exception: Served::Resource::Requestable::HandlerRequired

Inherits:
StandardError
  • Object
show all
Defined in:
lib/served/resource/requestable.rb

Overview

raised when a handler is defined if the method doesn’t exist or if a proc isn’t supplied

Instance Method Summary collapse

Constructor Details

#initializeHandlerRequired

Returns a new instance of HandlerRequired.



8
9
10
# File 'lib/served/resource/requestable.rb', line 8

def initialize
  super 'a handler is required, it must be a proc or a valid method'
end