public class CodeException extends RuntimeException implements I18nAware
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeException.TweakingCodeException
tweaking stacktrace by code and thread
|
| Modifier and Type | Field and Description |
|---|---|
static CodeException.TweakingCodeException |
TweakStack |
| Constructor and Description |
|---|
CodeException(boolean stack,
CodeEnum code)
Constructs a stacked or unstacked exception directly.
|
CodeException(boolean stack,
CodeEnum code,
Object... args)
Constructs a stacked or unstacked exception directly.
|
CodeException(boolean stack,
String code)
Constructs a stacked or unstacked exception directly.
|
CodeException(boolean stack,
String code,
String message)
Constructs a stacked or unstacked exception directly.
|
CodeException(CodeEnum code)
Constructs a stacked or unstacked exception depending on the Global or Thread setting.
|
CodeException(CodeEnum code,
Object... args)
Constructs a stacked or unstacked exception depending on the Global or Thread setting.
|
CodeException(String code)
Constructs a stacked or unstacked exception depending on the Global or Thread setting.
|
CodeException(String code,
String message)
Constructs a stacked or unstacked exception depending on the Global or Thread setting.
|
CodeException(Throwable cause,
CodeEnum code) |
CodeException(Throwable cause,
CodeEnum code,
Object... args) |
CodeException(Throwable cause,
String code) |
CodeException(Throwable cause,
String code,
String message) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getCode() |
Object[] |
getI18nArgs()
get i18n args for template
|
String |
getI18nCode()
get i18n code
|
@NotNull I18nString |
toI18nString(String hint) |
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, waitgetI18nHint, toI18nString, toI18nString, toI18nStringArgspublic static final CodeException.TweakingCodeException TweakStack
public CodeException(String code)
public CodeException(String code, String message)
public CodeException(CodeEnum code)
public CodeException(CodeEnum code, Object... args)
public CodeException(boolean stack,
String code)
public CodeException(boolean stack,
String code,
String message)
public CodeException(boolean stack,
CodeEnum code)
public CodeException(boolean stack,
CodeEnum code,
Object... args)
@NotNull public @NotNull String getCode()
@Contract(value="_,_->this") public CodeException withI18n(String code, Object... args)
@NotNull public @NotNull I18nString toI18nString(String hint)
toI18nString in interface I18nAwarepublic String getI18nCode()
I18nAwaregetI18nCode in interface I18nAwarepublic Object[] getI18nArgs()
I18nAwaregetI18nArgs in interface I18nAwareCopyright © 2024. All rights reserved.