#
luxiaotao1123
2020-07-07 ab2b8ef5df5edf24cf158dbcfc1a43b0629d644e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.zy.asrs.task;
 
/**
 * Created by vincent on 2020/7/4
 */
public abstract class AbstractHandler<T> {
 
    public final ReturnT<T> SUCCESS = new ReturnT<>(200, null);
    public final ReturnT<T> FAIL = new ReturnT<>(500, null);
 
    protected abstract ReturnT<T> start();
 
    protected void exceptionHandle(String errorMsg){
        throw new AsrsException(errorMsg);
    }
 
}