cn.gtmap.estateplat.utils
类 Exceptions

java.lang.Object
  继承者 cn.gtmap.estateplat.utils.Exceptions

public class Exceptions
extends Object

异常处理工具类

作者:
L.cm

构造方法摘要
Exceptions()
           
 
方法摘要
static String getStackTraceAsString(Throwable ex)
          将ErrorStack转化为String.
static RuntimeException unchecked(Throwable e)
          将CheckedException转换为UncheckedException.
static Throwable unwrap(Throwable wrapped)
          代理异常解包
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Exceptions

public Exceptions()
方法详细信息

getStackTraceAsString

public static String getStackTraceAsString(Throwable ex)
将ErrorStack转化为String.

参数:
ex - Throwable
返回:
{String}

unchecked

public static RuntimeException unchecked(Throwable e)
将CheckedException转换为UncheckedException.

参数:
e - Throwable
返回:
{RuntimeException}

unwrap

public static Throwable unwrap(Throwable wrapped)
代理异常解包

参数:
wrapped - 包装过得异常
返回:
解包后的异常


Copyright © 2015–2022 cn.gtmap. All rights reserved.