public static enum InvalidInputException.Type extends Enum<InvalidInputException.Type> implements IExceptionType<String>, IExceptionFactory<InvalidInputException>
| Enum Constant and Description |
|---|
CONTAINS_ILLEGAL_AND_MALICIOUS_LINKS |
CONTAINS_ILLEGAL_WORDS |
DEFAULT |
INFRINGE_COPYRIGHT |
PICTURE_CONTAINS_ILLEGAL_INFORMATION |
| Modifier and Type | Method and Description |
|---|---|
InvalidInputException |
create()
创建异常
|
InvalidInputException |
create(String message)
使用指定
message 创建异常 |
InvalidInputException |
create(String message,
Throwable cause)
使用指定
message 和 cause 创建异常 |
InvalidInputException |
create(Throwable cause)
使用指定
cause 创建异常 |
String |
getCode()
获取码值
|
String |
getDefaultMessage()
默认异常信息
|
static InvalidInputException.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvalidInputException.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 InvalidInputException.Type DEFAULT
public static final InvalidInputException.Type CONTAINS_ILLEGAL_AND_MALICIOUS_LINKS
public static final InvalidInputException.Type CONTAINS_ILLEGAL_WORDS
public static final InvalidInputException.Type PICTURE_CONTAINS_ILLEGAL_INFORMATION
public static final InvalidInputException.Type INFRINGE_COPYRIGHT
public static InvalidInputException.Type[] values()
for (InvalidInputException.Type c : InvalidInputException.Type.values()) System.out.println(c);
public static InvalidInputException.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 InvalidInputException create()
IExceptionFactorycreate in interface IExceptionFactory<InvalidInputException>@Nonnull public InvalidInputException create(String message)
IExceptionFactorymessage 创建异常create in interface IExceptionFactory<InvalidInputException>message - 异常信息@Nonnull public InvalidInputException create(Throwable cause)
IExceptionFactorycause 创建异常create in interface IExceptionFactory<InvalidInputException>cause - 包装的异常@Nonnull public InvalidInputException create(String message, Throwable cause)
IExceptionFactorymessage 和 cause 创建异常create in interface IExceptionFactory<InvalidInputException>message - 异常信息cause - 包装的异常Copyright © 2026. All rights reserved.