Sha256: 7b1cb8645430af70b3e518b48f7d1d347980844399e24bb2e52961d63d401af4

Contents?: true

Size: 539 Bytes

Versions: 10

Compression:

Stored size: 539 Bytes

Contents

module Appsignal
  class MissingController
    def method_missing(*args, &block)
    end
  end

  class ExceptionNotification
    attr_reader :env, :exception, :kontroller, :request, :backtrace

    def initialize(env, exception)
      @exception  = exception
      @backtrace  = Rails.respond_to?(:backtrace_cleaner) ?
          Rails.backtrace_cleaner.send(:filter, exception.backtrace) :
          exception.backtrace
    end

    def name
      @exception.class.name
    end

    def message
      @exception.message
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appsignal-0.5.5 lib/appsignal/exception_notification.rb
appsignal-0.5.3 lib/appsignal/exception_notification.rb
appsignal-0.5.1 lib/appsignal/exception_notification.rb
appsignal-0.5.0 lib/appsignal/exception_notification.rb
appsignal-0.4.7 lib/appsignal/exception_notification.rb
appsignal-0.4.6 lib/appsignal/exception_notification.rb
appsignal-0.4.5 lib/appsignal/exception_notification.rb
appsignal-0.4.4 lib/appsignal/exception_notification.rb
appsignal-0.4.3 lib/appsignal/exception_notification.rb
appsignal-0.4.0 lib/appsignal/exception_notification.rb