package com.taoke.autopay.exception;
|
|
/**
|
* @author
|
* @title: OrderTaskException
|
* @description: 下单任务异常类
|
* @date 2025/7/28
|
*/
|
public class OrderTaskException extends Exception {
|
|
public final static int CODE_COMMON = 1;
|
public final static int CODE_TASK_NOT_FOUND = 10;
|
public final static int CODE_TASK_CREATE_FAILED = 11;
|
public final static int CODE_TASK_UPDATE_FAILED = 12;
|
public final static int CODE_TASK_DELETE_FAILED = 13;
|
|
private int code;
|
|
public int getCode() {
|
return code;
|
}
|
|
public OrderTaskException(int code, String msg) {
|
super(msg);
|
this.code = code;
|
}
|
|
public OrderTaskException(String msg) {
|
super(msg);
|
this.code = CODE_COMMON;
|
}
|
}
|