public final class ServiceException extends RuntimeException
| 构造器和说明 |
|---|
ServiceException()
空构造方法,避免反序列化问题
|
ServiceException(ExceptionCode errorCode) |
ServiceException(ExceptionCode errorCode,
Throwable cause) |
ServiceException(int code,
String message) |
ServiceException(int code,
String message,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
Integer |
getCode() |
String |
getMessage() |
int |
hashCode() |
void |
setCode(Integer code) |
void |
setMessage(String message) |
String |
toString() |
public ServiceException()
public ServiceException(ExceptionCode errorCode)
public ServiceException(ExceptionCode errorCode, Throwable cause)
public ServiceException(int code,
String message)
Copyright © 2024 tan. All rights reserved.