Harbor Documentation

Harbor::Events::ApplicationExceptionEvent

Parent

Methods

Attributes

  • request [R] (Not documented)
  • response [R] (Not documented)
  • exception [R] (Not documented)

Public Class Methods

new(request, response, exception)

      # File lib/harbor/events/application_exception_event.rb, line 7
 7:       def initialize(request, response, exception)
 8:         @request = request
 9:         @response = response
10:         @exception = exception
11:         @occurred = Time::now
12:       end

Public Instance Methods

trace()

      # File lib/harbor/events/application_exception_event.rb, line 14
14:       def trace
15:         "\#{@exception} (\#{@exception.backtrace.first})\n\n\#{@exception.backtrace.join(\"\\n\")}\n\n== [ Request ] ==\n\n\#{@request.env.to_yaml}\n\n================================================================================\n"
16:       end