Sha256: fd378b2e44b37fd5305f99480b79c689690bd930c104071b1305693febf4c80e

Contents?: true

Size: 298 Bytes

Versions: 37

Compression:

Stored size: 298 Bytes

Contents

require 'mocha/backtrace_filter'

module Mocha
  # @private
  class ErrorWithFilteredBacktrace < StandardError
    # @private
    def initialize(message = nil, backtrace = [])
      super(message)
      filter = BacktraceFilter.new
      set_backtrace(filter.filtered(backtrace))
    end
  end
end

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
mocha-2.5.0 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.4.5 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.4.4 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.4.3 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.4.2 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.4.1 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.4.0 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.2.0 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.1.0 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.4 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.3 lib/mocha/error_with_filtered_backtrace.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/mocha-2.0.2/lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.2 lib/mocha/error_with_filtered_backtrace.rb
mocha-1.16.1 lib/mocha/error_with_filtered_backtrace.rb
mocha-1.15.1 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.1 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.0 lib/mocha/error_with_filtered_backtrace.rb
mocha-1.16.0 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.0.alpha.1 lib/mocha/error_with_filtered_backtrace.rb
mocha-2.0.0.alpha lib/mocha/error_with_filtered_backtrace.rb