Exception: Served::Resource::Requestable::HandlerRequired
- Inherits:
-
StandardError
- Object
- StandardError
- Served::Resource::Requestable::HandlerRequired
- 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
-
#initialize ⇒ HandlerRequired
constructor
A new instance of HandlerRequired.
Constructor Details
#initialize ⇒ HandlerRequired
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 |