public class ApiException extends Exception
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
code |
protected String |
msg |
static ApiException |
SYSTEM_ERROR |
| 构造器和说明 |
|---|
ApiException() |
ApiException(String message) |
ApiException(String code,
String msg,
Object... args) |
ApiException(String message,
Throwable cause) |
ApiException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
ApiException(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiException |
format(Object... args) |
ApiException |
formatMsg(String msg,
Object... args) |
String |
getCode() |
String |
getMsg() |
ApiException |
getNewInstance(String code,
String msg,
Object... args) |
void |
setCode(String code) |
void |
setMsg(String msg) |
public static final ApiException SYSTEM_ERROR
protected String code
protected String msg
public ApiException()
public ApiException(String message)
public ApiException(Throwable cause)
public ApiException getNewInstance(String code, String msg, Object... args)
public ApiException formatMsg(String msg, Object... args)
public String getCode()
public void setCode(String code)
public String getMsg()
public void setMsg(String msg)
public ApiException format(Object... args)
Copyright © 2023. All rights reserved.