服务启动
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.xyzh.common.core.exception;
|
||||
|
||||
public class BaseException extends RuntimeException{
|
||||
private Integer code;
|
||||
|
||||
private String description;
|
||||
|
||||
public BaseException(Integer code, String description, String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getDescription(){
|
||||
return this.description;
|
||||
}
|
||||
|
||||
public String getMessage(){
|
||||
return super.getMessage();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user