Class: Sinatra::NotFound
- Inherits:
-
Object
- Object
- Sinatra::NotFound
- Defined in:
- lib/herbert/ApplicationError.rb
Instance Method Summary collapse
-
#to_hash ⇒ Object
Enables Sinatra built-in exceptions to be logged.
Instance Method Details
#to_hash ⇒ Object
Enables Sinatra built-in exceptions to be logged
56 57 58 59 60 61 |
# File 'lib/herbert/ApplicationError.rb', line 56 def to_hash { :code => 1003, :message => "Not found" } end |