Sha256: 452629882f23bf136e045bbad3a4e728829f3aa780aa1c328b7c8662d05070fc

Contents?: true

Size: 710 Bytes

Versions: 12

Compression:

Stored size: 710 Bytes

Contents

Exception.metaclass_eval do
  attr_accessor :filters
end

Exception.filters = []
Exception.filters = %w(
  /gems/haml
  /gems/tilt
  /gems/facets
  /gems/rack
  /gems/mongrel
  /gems/rspec
  /gems/thin
  
  /timeout.rb
  /bin/spec
  
  lib/fake_gem
  rubygems/custom_require
  
  /rad/template
  /rad/template
  
  /face/view_builder
  /face/view_helper    
  
  /rad/_support
  
  /monitor
  /synchronize
  /class_loader
  /micon
  
  internal:lib/
)

# Uncomment this line to disable filtering
# Exception.filters = []

Exception.class_eval do
  alias_method :set_backtrace_without_filter, :set_backtrace
  def set_backtrace array
    set_backtrace_without_filter array.sfilter(::Exception.filters)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rad_core-0.0.25 lib/rad/_support/exception.rb
rad_core-0.0.24 lib/rad/_support/exception.rb
rad_core-0.0.23 lib/rad/_support/exception.rb
rad_core-0.0.22 lib/rad/_support/exception.rb
rad_core-0.0.21 lib/rad/_support/exception.rb
rad_core-0.0.20 lib/rad/_support/exception.rb
rad_core-0.0.19 lib/rad/_support/exception.rb
rad_core-0.0.18 lib/rad/_support/exception.rb
rad_core-0.0.17 lib/rad/_support/exception.rb
rad_core-0.0.16 lib/rad/_support/exception.rb
rad_core-0.0.15 lib/rad/_support/exception.rb
rad_core-0.0.14 lib/rad/_support/exception.rb