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| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object[] |
getArgs() |
int |
getCode() |
String |
getId() |
String |
getMessage() |
String |
getSimpleMessage() |
String |
getStack() |
String |
toString() |
public AppException()
public AppException(String message)
public AppException(Throwable cause)
public AppException(int code,
Object... args)
Copyright © 2015–2017 cn.gtmap. All rights reserved.