@Deprecated public class BusinessException extends RuntimeException
| 构造器和说明 |
|---|
BusinessException(org.springframework.http.HttpStatus code,
String msg)
已过时。
自定义异常信息
|
BusinessException(org.springframework.http.HttpStatus code,
String msg,
Object data)
已过时。
|
BusinessException(String msg)
已过时。
|
BusinessException(String msg,
Object data)
已过时。
|
BusinessException(String msg,
String url)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.HttpStatus |
getCode()
已过时。
|
Object |
getData()
已过时。
|
String |
getMsg()
已过时。
|
String |
getUrl()
已过时。
|
void |
setCode(org.springframework.http.HttpStatus code)
已过时。
|
void |
setData(Object data)
已过时。
|
void |
setMsg(String msg)
已过时。
|
void |
setUrl(String url)
已过时。
|
public BusinessException(String msg)
public BusinessException(org.springframework.http.HttpStatus code,
String msg,
Object data)
public BusinessException(org.springframework.http.HttpStatus code,
String msg)
code - 错误码 HttpStatusmsg - 错误信息public org.springframework.http.HttpStatus getCode()
public void setCode(org.springframework.http.HttpStatus code)
public String getMsg()
public void setMsg(String msg)
public Object getData()
public void setData(Object data)
public String getUrl()
public void setUrl(String url)
Copyright © 2023. All rights reserved.