Module: Herbert::Error::Helpers

Defined in:
lib/herbert/Error.rb

Instance Method Summary collapse

Instance Method Details

#error(code = 1020, http_code = nil, errors = nil) ⇒ Object

Request-context helper of error states



55
56
57
# File 'lib/herbert/Error.rb', line 55

def error(code = 1020, http_code = nil, errors = nil)
  raise Herbert::Error::ApplicationError.new(code, http_code, errors)
end