自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-07-07 dc078dbd74d0028cdedb4210f0b892f88c86e41c
src/main/java/com/zy/asrs/task/AbstractHandler.java
@@ -1,5 +1,7 @@
package com.zy.asrs.task;
import java.text.MessageFormat;
/**
 * Created by vincent on 2020/7/4
 */
@@ -11,7 +13,11 @@
    protected abstract ReturnT<T> start();
    protected void exceptionHandle(String errorMsg){
        throw new AsrsException(errorMsg);
        exceptionHandle(errorMsg, (Object) null);
    }
    protected void exceptionHandle(String errorMsg, Object... args){
        throw new AsrsException(MessageFormat.format(errorMsg, args));
    }
}