Returns a new instance of Error.
Overloads:
Parameters:
The exception mesg
A set of options to store on the exception
32 33 34 35 36 37 38 39 40 41
# File 'lib/r10k/errors.rb', line 32 def initialize(mesg, options = {}) super(mesg) bt = options.delete(:backtrace) if bt set_backtrace(bt) end @options = options end