public class CodeException extends RuntimeException implements I18nAware
| Constructor and Description |
|---|
CodeException(CodeEnum code) |
CodeException(CodeEnum code,
Object... args) |
CodeException(String code) |
CodeException(String code,
String message) |
CodeException(String code,
Throwable cause) |
CodeException(String code,
Throwable cause,
String message) |
CodeException(Throwable cause,
CodeEnum code) |
CodeException(Throwable cause,
CodeEnum code,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getCode() |
Object[] |
getI18nArgs()
获得 i18n 参数
|
String |
getI18nCode()
获得i18nCode,默认code
|
CodeException |
withI18n(String code,
Object... args) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoI18nStringpublic CodeException(String code)
public CodeException(CodeEnum code)
@NotNull public @NotNull String getCode()
public CodeException withI18n(String code, Object... args)
public String getI18nCode()
I18nAwaregetI18nCode in interface I18nAwarepublic Object[] getI18nArgs()
I18nAwaregetI18nArgs in interface I18nAwareCopyright © 2020. All rights reserved.