Exception: Exception

Defined in:
lib/exocora/errors.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



2
3
4
5
6
7
8
# File 'lib/exocora/errors.rb', line 2

def to_html
  "<p><b>#{self.class}</b>: #{Erubis::XmlHelper::escape_xml(to_s)}</p>" +
  "<p>Backtrace:" +
  '<ul>' + backtrace.map { |line| 
    '<li><code>' + Erubis::XmlHelper::escape_xml(line) + '</code></li>'
  }.join + '</ul></p>'
end