Exception: Csso::WrappedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/csso/utils.rb

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ WrappedError

Copies over ‘error`’s message and backtrace



42
43
44
45
# File 'lib/csso/utils.rb', line 42

def initialize(error)
  super(error.message)
  @backtrace = error.backtrace
end

Instance Method Details

#backtraceArray



48
49
50
# File 'lib/csso/utils.rb', line 48

def backtrace
  @backtrace
end