public final class InvalidInputException extends RequestParamsException implements IMultiTypesException<InvalidInputException.Type>
用户输入内容非法
NOTE: 属业务异常
| Modifier and Type | Class and Description |
|---|---|
static class |
InvalidInputException.Type |
| Constructor and Description |
|---|
InvalidInputException()
创建默认类型的
InvalidInputException。 |
InvalidInputException(String message)
使用指定
message 创建默认类型的 InvalidInputException。 |
InvalidInputException(String message,
Throwable cause)
使用指定的
message 和 cause 创建默认类型的 InvalidInputException。 |
InvalidInputException(Throwable cause)
使用指定的
cause 创建默认类型的 InvalidInputException。 |
| Modifier and Type | Method and Description |
|---|---|
InvalidInputException.Type |
getType()
异常类型
|
of, of, of, of, ofaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidInputException()
InvalidInputException。
type 为 InvalidInputException.Type.DEFAULT,
message 为 InvalidInputException.Type.DEFAULT 的默认信息。
cause 未初始化,后面可能会通过调用 Throwable.initCause(java.lang.Throwable) 进行初始化。public InvalidInputException(String message)
message 创建默认类型的 InvalidInputException。
type 为 InvalidInputException.Type.DEFAULT,
cause 未初始化,后面可能会通过调用 Throwable.initCause(java.lang.Throwable) 进行初始化。message - 异常信息public InvalidInputException(Throwable cause)
cause 创建默认类型的 InvalidInputException。
type 为 InvalidInputException.Type.DEFAULT,
message 为 (cause==null ? null : cause.toString())。cause - 包装的异常@Nonnull public InvalidInputException.Type getType()
IMultiTypesExceptiongetType in interface IMultiTypesException<InvalidInputException.Type>IExceptionType 的枚举。Copyright © 2026. All rights reserved.