com.zznote.basecommon.common.exception.UserException Maven / Gradle / Ivy
The newest version!
package com.zznote.basecommon.common.exception;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* 用户信息异常类
*
* @author zhangzhen
*/
@AllArgsConstructor
@Data
public class UserException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* 所属模块
*/
private String module;
/**
* 错误码
*/
private Integer code;
/**
* 错误码对应的参数
*/
private Object[] args;
/**
* 错误消息
*/
private String message;
public UserException(String message) {
this("user", 9999, null, message);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy