自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-07-07 ab2b8ef5df5edf24cf158dbcfc1a43b0629d644e
src/main/java/com/zy/asrs/task/AbstractHandler.java
@@ -1,21 +1,17 @@
package com.zy.asrs.task;
import com.core.exception.CoolException;
/**
 * Created by vincent on 2020/7/4
 */
public abstract class AbstractHandler {
public abstract class AbstractHandler<T> {
    public void run(){
        boolean start = start();
        System.out.println(start);
    }
    public final ReturnT<T> SUCCESS = new ReturnT<>(200, null);
    public final ReturnT<T> FAIL = new ReturnT<>(500, null);
    protected abstract boolean start();
    protected abstract ReturnT<T> start();
    protected void exceptionHandle(String errorMsg){
        throw new CoolException("231");
        throw new AsrsException(errorMsg);
    }
}