class Percheron::OhDear
Attributes
exception[R]
Public Class Methods
new(exception)
click to toggle source
# File lib/percheron/oh_dear.rb, line 4 def initialize(exception) @exception = exception end
Public Instance Methods
generate()
click to toggle source
# File lib/percheron/oh_dear.rb, line 8 def generate template end
Private Instance Methods
exception_backtrace()
click to toggle source
# File lib/percheron/oh_dear.rb, line 49 def exception_backtrace exception.backtrace ? exception.backtrace.join("\n") : '' end
exception_message()
click to toggle source
rubocop:enable Metrics/MethodLength
# File lib/percheron/oh_dear.rb, line 45 def exception_message exception.inspect end
template()
click to toggle source
rubocop:disable Metrics/MethodLength
# File lib/percheron/oh_dear.rb, line 17 def template <<-EOS We are terribly sorry.. something unexpected occurred :( --snip-- Info ---- Ruby: #{RUBY_VERSION} Percheron: #{Percheron::VERSION} Trace ----- #{exception_message} #{exception_backtrace} --snip-- Please copy the detail between the --snip--'s above and raise a ticket please :) https://github.com/ashmckenzie/percheron/issues/new?labels=bug EOS end