Class: Sinatra::NotFound

Inherits:
Object
  • Object
show all
Defined in:
lib/herbert/ApplicationError.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject

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