class Salt::Matrix::Error
Attributes
original[RW]
Public Class Methods
new(mesg, options = {})
click to toggle source
Calls superclass method
# File lib/salt/matrix/error.rb, line 18 def initialize(mesg, options = {}) super(mesg) bt = options.delete(:backtrace) if bt set_backtrace(bt) end @options = options end
wrap(original, mesg, options = {})
click to toggle source
# File lib/salt/matrix/error.rb, line 10 def self.wrap(original, mesg, options = {}) new(mesg, options).tap do |e| e.set_backtrace(caller(4)) e.original = original end end