程序包 cn.gybyt.util
类 BaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- cn.gybyt.util.BaseException
-
- 所有已实现的接口:
Serializable
public class BaseException extends RuntimeException
公共异常- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 BaseException()默认构造方法BaseException(Integer code, String msg)BaseException(Integer code, String msg, Boolean changeHttpStatus)BaseException(String msg)错误信息,默认400错误BaseException(String msg, Throwable cause)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BooleangetChangeHttpStatus()IntegergetCode()intgetHttpStatus()StringgetMsg()voidsetChangeHttpStatus(Boolean changeHttpStatus)voidsetCode(int code)voidsetCode(Integer code)voidsetHttpStatus(int httpStatus)voidsetMsg(String msg)
-
-
-
构造器详细资料
-
BaseException
public BaseException()
默认构造方法
-
BaseException
public BaseException(String msg)
错误信息,默认400错误- 参数:
msg-
-
-
方法详细资料
-
getCode
public Integer getCode()
-
setCode
public void setCode(Integer code)
-
getMsg
public String getMsg()
-
setMsg
public void setMsg(String msg)
-
getChangeHttpStatus
public Boolean getChangeHttpStatus()
-
setCode
public void setCode(int code)
-
getHttpStatus
public int getHttpStatus()
-
setHttpStatus
public void setHttpStatus(int httpStatus)
-
setChangeHttpStatus
public void setChangeHttpStatus(Boolean changeHttpStatus)
-
-