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) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.HttpStatus |
getCode() |
Object |
getData() |
String |
getMsg() |
void |
setCode(org.springframework.http.HttpStatus code) |
void |
setData(Object data) |
void |
setMsg(String msg) |
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 - 错误信息Copyright © 2022. All rights reserved.