public final class ExceptionKit extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
throwClassCastException(String message)
抛出 ClassCastException
|
static void |
throwIllegalArgumentException(String message)
抛出IllegalArgumentException
|
static void |
throwIllegalArgumentException(String format,
Object... args)
抛出BizException
|
static void |
throwNullPointerException(String message)
抛出 NullPointerException
|
static void |
throwNullPointerException(String format,
Object... args)
抛出 NullPointerException
|
static void |
throwRuntimeException(String message)
抛出 RuntimeException
|
public static void throwIllegalArgumentException(String message)
message - public static void throwIllegalArgumentException(String format, Object... args)
format - args - public static void throwNullPointerException(String message)
message - public static void throwNullPointerException(String format, Object... args)
format - args - public static void throwClassCastException(String message)
message - public static void throwRuntimeException(String message)
message - Copyright © 2020. All rights reserved.