# File lib/autobuild/exceptions.rb, line 41 def initialize(*args) if args.size == 1 sc = args[0] target, command, logfile, status = sc.target, sc.command, sc.logfile, sc.status @orig_message = sc.exception_message elsif args.size == 4 target, command, logfile, status = *args else raise ArgumentError, "wrong number of arguments, should be 1 or 4" end super(target) @command = command @logfile = logfile @status = status end