Class Wee::ErrorResponse
In: lib/wee/response.rb
Parent: Response

Methods

new  

Included Modules

Rack::Utils

Public Class methods

[Source]

# File lib/wee/response.rb, line 46
    def initialize(exception)
      super()
      write "<html><head><title>Error occured</title></head><body>"
      write "<p>#{ escape_html(@exception.inspect) }<br/>"
      write exception.backtrace.map{|s| escape_html(s)}.join("<br/>") 
      write "</p>"
      write "</body></html>"
    end

[Validate]