public final class LocalizedExceptionUtils
extends java.lang.Object
抛出国际化支持的异常信息
| 限定符和类型 | 方法和说明 |
|---|---|
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)
抛出指定类型的异常
|
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 - 消息绑定参数