module Restfulness::Resources::Events
Special events that can be used in replies. The idea here is to cover the basic messages that most applications will deal with in their resources.
Constants
- EXCEPTION_EVENTS
Event definitions go here. We only support a limited subset so that we don't end up with loads of methods that are not used. If you'd like to see another, please send us a pull request!
- SUCCESS_EVENTS
Public Instance Methods
error!(code, payload = "", opts = {})
click to toggle source
Main error event handler
# File lib/restfulness/resources/events.rb, line 40 def error!(code, payload = "", opts = {}) raise HTTPException.new(code, payload, opts) end