You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
679 B
34 lines
679 B
package com.ruoyi.common.exception.job; |
|
|
|
/** |
|
* 计划策略异常 |
|
* |
|
* @author ruoyi |
|
*/ |
|
public class TaskException extends Exception |
|
{ |
|
private static final long serialVersionUID = 1L; |
|
|
|
private Code code; |
|
|
|
public TaskException(String msg, Code code) |
|
{ |
|
this(msg, code, null); |
|
} |
|
|
|
public TaskException(String msg, Code code, Exception nestedEx) |
|
{ |
|
super(msg, nestedEx); |
|
this.code = code; |
|
} |
|
|
|
public Code getCode() |
|
{ |
|
return code; |
|
} |
|
|
|
public enum Code |
|
{ |
|
TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE |
|
} |
|
} |