Class Sinatra::ShowExceptions
In: lib/sinatra/showexceptions.rb
Parent: Rack::ShowExceptions

Sinatra::ShowExceptions catches all exceptions raised from the app it wraps. It shows a useful backtrace with the sourcefile and clickable context, the whole Rack environment and the request data.

Be careful when you use this on public-facing sites as it could reveal information helpful to attackers.

Methods

new  

Public Class methods

[Source]

    # File lib/sinatra/showexceptions.rb, line 11
11:     def initialize(app)
12:       @app      = app
13:       @template = ERB.new(TEMPLATE)
14:     end

[Validate]