cn.gtmap.estateplat.utils
类 ExUtils

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

public final class ExUtils
extends Object

.

版本:
V1.0, 12-8-12
作者:
yangxin

方法摘要
static String buildMessage(int code, Object[] args, String customMessage, Throwable cause)
           
static String buildNestedMessage(String message, Throwable ex)
           
static String buildNestedMessage(Throwable ex)
           
static String buildStackTrace(Throwable cause)
           
static Source extractSource(List<SourceExtractor> sourceExtractors, Throwable ex)
           
static Throwable getRootCause(Throwable cause)
           
static int parseCode(Throwable cause)
           
static Exception raw(Exception ex)
           
static void throwEx(Throwable ex)
           
static void throwRoot(Exception e)
           
static Map<String,Object> toMap(Exception ex)
           
static AppException wrap(Throwable ex)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getRootCause

public static Throwable getRootCause(Throwable cause)

wrap

public static AppException wrap(Throwable ex)

throwEx

public static void throwEx(Throwable ex)

throwRoot

public static void throwRoot(Exception e)

raw

public static Exception raw(Exception ex)

parseCode

public static int parseCode(Throwable cause)

buildMessage

public static String buildMessage(int code,
                                  Object[] args,
                                  String customMessage,
                                  Throwable cause)

buildNestedMessage

public static String buildNestedMessage(String message,
                                        Throwable ex)

buildNestedMessage

public static String buildNestedMessage(Throwable ex)

buildStackTrace

public static String buildStackTrace(Throwable cause)

toMap

public static Map<String,Object> toMap(Exception ex)

extractSource

public static Source extractSource(List<SourceExtractor> sourceExtractors,
                                   Throwable ex)


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