public class ActionException extends RuntimeException
| 构造器和说明 |
|---|
ActionException(int errorCode,
Render errorRender) |
ActionException(int errorCode,
Render errorRender,
String errorMessage) |
ActionException(int errorCode,
String viewOrJson) |
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
fillInStackTrace()
异常构造函数会调用 fillInStackTrace() 构建整个调用栈,消耗较大
而 ActionException 无需使用调用栈信息,覆盖此方法用于提升性能
|
int |
getErrorCode() |
Render |
getErrorRender() |
String |
getLocalizedMessage() |
String |
getMessage() |
addSuppressed, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ActionException(int errorCode,
Render errorRender)
public ActionException(int errorCode,
String viewOrJson)
public int getErrorCode()
public String getMessage()
getMessage 在类中 Throwablepublic String getLocalizedMessage()
getLocalizedMessage 在类中 Throwablepublic Render getErrorRender()
public Throwable fillInStackTrace()
fillInStackTrace 在类中 ThrowableCopyright © 2024. All rights reserved.