Exception: ComplexConfig::ComplexConfigError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/complex_config/errors.rb

Class Method Summary collapse

Class Method Details

.wrap(klass, e) ⇒ Object



3
4
5
6
7
8
# File 'lib/complex_config/errors.rb', line 3

def self.wrap(klass, e)
  Class === klass or klass = ComplexConfig.const_get(klass)
  error = klass.new(e.message)
  error.set_backtrace(e.backtrace)
  error
end