first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.budwk.app.base.exception;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* @author wizzer@qq.com
|
||||
*/
|
||||
public class BaseException extends RuntimeException{
|
||||
|
||||
private static final long serialVersionUID = 7192152812384031563L;
|
||||
|
||||
public BaseException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public BaseException(String message, Object... arguments) {
|
||||
super(StrUtil.format(message, arguments));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.budwk.app.base.exception;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 方法参数校验异常
|
||||
*/
|
||||
public class MethodArgumentNotValidException extends RuntimeException{
|
||||
|
||||
public MethodArgumentNotValidException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public MethodArgumentNotValidException(String message, Object... arguments) {
|
||||
super(StrUtil.format(message, arguments));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.budwk.app.base.exception;
|
||||
|
||||
public class UnknownAccountException extends BaseException{
|
||||
|
||||
public UnknownAccountException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user