public final class LocalizedExceptionUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
throwException(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.util.function.Function<java.lang.String,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
static void |
throwException(java.util.function.Function<java.lang.String,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.String message,
java.lang.Object... args)
抛出指定类型的异常.
|
public static void throwException(java.util.function.Function<java.lang.String,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.String message,
java.lang.Object... args)
newException - the new exceptionexceptionType - throw exception typemessage - messageargs - 消息绑定参数public static void throwException(java.util.function.Function<java.lang.String,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
newException - the new exceptionexceptionType - throw exception typelocale - localemessage - messageargs - 消息绑定参数public static void throwException(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.lang.String message,
java.lang.Object... args)
newException - the new exceptionexceptionType - throw exception typecause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is
nonexistent or unknown.)message - messageargs - 消息绑定参数public static void throwException(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> newException,
java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
newException - the new exceptionexceptionType - throw exception typecause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is
nonexistent or unknown.)locale - localemessage - messageargs - 消息绑定参数public static void throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.String message,
java.lang.Object... args)
exceptionType - throw exception typemessage - messageargs - 消息绑定参数public static void throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
exceptionType - throw exception typelocale - localemessage - messageargs - 消息绑定参数public static void throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.lang.String message,
java.lang.Object... args)
exceptionType - throw exception typecause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is
nonexistent or unknown.)message - messageargs - 消息绑定参数public static void throwException(java.lang.Class<? extends java.lang.RuntimeException> exceptionType,
java.lang.Throwable cause,
java.util.Locale locale,
java.lang.String message,
java.lang.Object... args)
exceptionType - throw exception typecause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is
nonexistent or unknown.)locale - localemessage - messageargs - 消息绑定参数