class MIKU::ExceptionDelegator

Public Class Methods

new(msg, exceptionclass) click to toggle source
Calls superclass method
# File core/miku/error.rb, line 8
def initialize(msg, exceptionclass)
  @exceptionclass = exceptionclass
  super(msg)
end

Public Instance Methods

fire(scan) click to toggle source
# File core/miku/error.rb, line 13
def fire(scan)
  puts self.backtrace.join("\n")
  raise @exceptionclass.new(to_s, scan)
end