public class APIException extends RuntimeException implements APIExceptionInter
| 构造器和说明 |
|---|
APIException(APIException cause) |
APIException(int code,
String message) |
APIException(int code,
String message,
Throwable cause) |
APIException(String code,
String message) |
APIException(String code,
String message,
Throwable cause) |
APIException(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode() |
String |
getMessage() |
void |
setCode(Integer code) |
void |
setCode(String code) |
void |
setMessage(String message) |
public APIException(Throwable cause)
public APIException(APIException cause)
public APIException(int code,
String message)
public void setCode(String code)
public void setCode(Integer code)
public String getCode()
getCode 在接口中 APIExceptionInterpublic void setMessage(String message)
public String getMessage()
getMessage 在接口中 APIExceptionIntergetMessage 在类中 ThrowableCopyright © 2019. All rights reserved.