public class ServiceException extends RuntimeException implements IException
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| 构造器和说明 |
|---|
ServiceException() |
ServiceException(IException exceptionCode) |
ServiceException(Integer code,
String message) |
ServiceException(String message) |
ServiceException(String message,
Object... args) |
ServiceException(String code,
String message) |
ServiceException(String code,
String message,
Object... args) |
ServiceException(String code,
String message,
Throwable cause) |
ServiceException(String code,
Throwable cause) |
ServiceException(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ServiceException |
error(IException exceptionCode,
Object... args) |
static ServiceException |
error(Integer code,
String message,
Object... args) |
static ServiceException |
error(String message,
Object... args) |
String |
getCode()
获取错误码
|
static void |
main(String[] args) |
void |
setCode(String code) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic ServiceException()
public ServiceException(Throwable cause)
public ServiceException(String message)
public ServiceException(IException exceptionCode)
public static ServiceException error(IException exceptionCode, Object... args)
public static ServiceException error(String message, Object... args)
public static ServiceException error(Integer code, String message, Object... args)
public void setCode(String code)
public String getCode()
IExceptiongetCode 在接口中 IExceptionpublic static void main(String[] args)
Copyright © 2020. All rights reserved.