public static enum ParsingFailureException.Type extends Enum<ParsingFailureException.Type> implements IExceptionType<String>, IExceptionFactory<ParsingFailureException>
| Enum Constant and Description |
|---|
DATE_TIME_PARSING_FAILURE |
DEFAULT |
JSON_PARSING_FAILURE |
NUMBER_PARSING_FAILURE |
XML_PARSING_FAILURE |
| Modifier and Type | Method and Description |
|---|---|
ParsingFailureException |
create()
创建异常
|
ParsingFailureException |
create(String message)
使用指定
message 创建异常 |
ParsingFailureException |
create(String message,
Throwable cause)
使用指定
message 和 cause 创建异常 |
ParsingFailureException |
create(Throwable cause)
使用指定
cause 创建异常 |
String |
getCode()
获取码值
|
String |
getDefaultMessage()
默认异常信息
|
static ParsingFailureException.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParsingFailureException.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetDescriptionisCodeEquals, isSameCodeAs, isSameCodeAs, isSameCodeAspublic static final ParsingFailureException.Type DEFAULT
public static final ParsingFailureException.Type NUMBER_PARSING_FAILURE
public static final ParsingFailureException.Type DATE_TIME_PARSING_FAILURE
public static final ParsingFailureException.Type JSON_PARSING_FAILURE
public static final ParsingFailureException.Type XML_PARSING_FAILURE
public static ParsingFailureException.Type[] values()
for (ParsingFailureException.Type c : ParsingFailureException.Type.values()) System.out.println(c);
public static ParsingFailureException.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull public String getDefaultMessage()
IExceptionTypegetDefaultMessage in interface IExceptionType<String>@Nonnull public ParsingFailureException create()
IExceptionFactorycreate in interface IExceptionFactory<ParsingFailureException>@Nonnull public ParsingFailureException create(String message)
IExceptionFactorymessage 创建异常create in interface IExceptionFactory<ParsingFailureException>message - 异常信息@Nonnull public ParsingFailureException create(Throwable cause)
IExceptionFactorycause 创建异常create in interface IExceptionFactory<ParsingFailureException>cause - 包装的异常@Nonnull public ParsingFailureException create(String message, Throwable cause)
IExceptionFactorymessage 和 cause 创建异常create in interface IExceptionFactory<ParsingFailureException>message - 异常信息cause - 包装的异常Copyright © 2026. All rights reserved.