Sha256: c8c36939486845e3ac40df766be77e2a46e3f307a0b188f3dd45848bdd4a61fa

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

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

  class ExceptionNotification
    attr_reader :env, :exception, :backtrace

    def initialize(env, exception, run_rails_cleaner=true)
      @env = env
      @exception = exception
      if run_rails_cleaner && Rails.respond_to?(:backtrace_cleaner)
        @backtrace = Rails.backtrace_cleaner.clean(@exception.backtrace, nil)
      else
        @backtrace = @exception.backtrace
      end
    end

    def name
      @exception.class.name
    end

    def message
      @exception.message
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appsignal-0.6.3.beta.2 lib/appsignal/exception_notification.rb
appsignal-0.6.3.beta.1 lib/appsignal/exception_notification.rb
appsignal-0.6.2 lib/appsignal/exception_notification.rb