public class AppException extends RuntimeException implements ErrorCode
CACHE_EX, CLASS_EX, CUSTOM, DB_EX, ENTITY_EX, ENTITY_EXISTS, ENTITY_NO_ID, ENTITY_NOT_FOUND, ILLEGAL_ARG, ILLEGAL_ARG_FORMAT, ILLEGAL_STATE, IO_EX, MISSING_ARG, MQ_EX, NOT_IMPL, NPE_EX, OOM_ERROR, SERVER_EX, SOCKET_EX, SOF_ERROR, SUCCEED, TPL_EX, UN_SUPPORTED, VALIDATION_EX| Constructor and Description |
|---|
AppException() |
AppException(int code,
Object... args) |
AppException(String message) |
AppException(String message,
int code,
Object... args) |
AppException(String message,
Throwable cause) |
AppException(String message,
Throwable cause,
int code,
Object... args) |
AppException(Throwable cause) |
AppException(Throwable cause,
int code,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getArgs() |
int |
getCode() |
String |
getId() |
String |
getMessage() |
String |
getSimpleMessage() |
String |
getSourceMessage() |
String |
getStack() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic AppException()
public AppException(String message)
public AppException(Throwable cause)
public AppException(int code,
Object... args)
public String getId()
public int getCode()
public Object[] getArgs()
public String getStack()
public String getMessage()
getMessage in class Throwablepublic String getSimpleMessage()
public String getSourceMessage()
Copyright © 2015–2022 cn.gtmap. All rights reserved.