exit関数は、バッチ実行のERRORLEVELを設定するために使用されます。
exit
var batch = new Batch(); batch.exit(1);
batch. exit ( level )
Batch
level
Number