class Launcher
{
public static void main(String[] args)
+ throws Throwable
{
/* Этап 1: Сохраняем список параметров */
Args.args = args;
System.err.println("Invalid module " + moduleName);
System.exit(1);
} catch(InvocationTargetException e) {
- System.err.println("Invalid module " + moduleName);
- System.exit(1);
+ throw e.getTargetException();
}
if(commandName == "")
System.err.println("Invalid command " + moduleName + "." + commandName);
System.exit(1);
} catch(InvocationTargetException e) {
- System.err.println("Invalid command " + moduleName + "." + commandName);
- System.exit(1);
+ throw e.getTargetException();
}
}
}