类 ExceptionUtils

java.lang.Object
com.alibaba.ageiport.common.exception.ExceptionUtils

public class ExceptionUtils extends Object
异常工具
作者:
lingyi
  • 方法详细资料

    • throwException

      public static <E extends Throwable> void throwException(Throwable t) throws E
      抛出:
      E extends Throwable
    • stackOf

      public static String stackOf(Throwable throwable)
    • getMessage

      public static String getMessage(Throwable e)
      获得完整消息,包括异常名,消息格式为:{SimpleClassName}: {ThrowableMessage}
      参数:
      e - 异常
      返回:
      完整消息