public class ZExceptionUtil
extends java.lang.Object
构造器和说明 |
---|
ZExceptionUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
arrayIndexOutOfBoundsException(java.lang.String string)
数组下标越界异常
|
static void |
exception(java.lang.String string)
泛型异常类型
|
static void |
fileNotFoundException(java.lang.String string)
文件未找到异常
|
static java.lang.String |
getErrorDetails(java.lang.Throwable throwable) |
static java.util.Map<java.lang.String,java.lang.Object> |
getErrorDetailsMap(java.lang.Throwable throwable) |
static java.lang.String |
getRootCauseMessage(java.lang.Throwable throwable)
输出出错的根本原因
|
static java.lang.String |
getStackTrace(java.lang.Throwable throwable)
输出错误的堆栈信息
|
static java.lang.String |
getThrowableList(java.lang.Throwable throwable)
输出调用链错误信息
|
static void |
indexOutOfBoundsExecption(java.lang.String string)
下标越界异常
|
static void |
ioException(java.lang.String string)
输入输出异常
|
static void |
nullPointerException(java.lang.String string)
空指针异常类型
|
static void |
numberFormatException(java.lang.String string)
数据格式异常
|
static void |
sqlException(java.lang.String string)
操作数据库异常
|
public static java.lang.String getRootCauseMessage(java.lang.Throwable throwable)
throwable
- throwablepublic static java.lang.String getErrorDetails(java.lang.Throwable throwable)
public static java.util.Map<java.lang.String,java.lang.Object> getErrorDetailsMap(java.lang.Throwable throwable)
public static java.lang.String getStackTrace(java.lang.Throwable throwable)
throwable
- throwablepublic static java.lang.String getThrowableList(java.lang.Throwable throwable)
throwable
- throwablepublic static void exception(java.lang.String string)
string
- 异常信息public static void ioException(java.lang.String string)
string
- 异常信息public static void nullPointerException(java.lang.String string)
string
- 异常信息public static void sqlException(java.lang.String string)
string
- 异常信息public static void numberFormatException(java.lang.String string)
string
- 异常信息public static void indexOutOfBoundsExecption(java.lang.String string)
string
- 异常信息 输出信息public static void arrayIndexOutOfBoundsException(java.lang.String string)
string
- 异常信息public static void fileNotFoundException(java.lang.String string)
string
- 异常信息