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)); } }