io.advantageous.boon.core.Exceptions.getFilteredStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(135)

本文整理了Java中io.advantageous.boon.core.Exceptions.getFilteredStackTrace()方法的一些代码示例,展示了Exceptions.getFilteredStackTrace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Exceptions.getFilteredStackTrace()方法的具体详情如下:
包路径:io.advantageous.boon.core.Exceptions
类名称:Exceptions
方法名:getFilteredStackTrace

Exceptions.getFilteredStackTrace介绍

暂无

代码示例

代码示例来源:origin: com.github.advantageous/boon-reflekt

public StackTraceElement[] getFilteredStackTrace() {
  StackTraceElement[] filteredStackTrace = Exceptions.getFilteredStackTrace(super.getStackTrace());
  if ( filteredStackTrace.length > 0 ) {
    if (super.getCause() !=  null) {
      StackTraceElement[] cause = Exceptions.getFilteredStackTrace(super.getCause().getStackTrace());
      if (cause.length > 0) {
        filteredStackTrace= add(cause, filteredStackTrace);
      }
    }
  } else {
    if (super.getCause() !=  null) {
      filteredStackTrace =  Exceptions.getFilteredStackTrace(super.getCause().getStackTrace());
    }
  }
  return Exceptions.getFilteredStackTrace(super.getStackTrace());
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public StackTraceElement[] getFilteredStackTrace() {
  StackTraceElement[] filteredStackTrace = Exceptions.getFilteredStackTrace(super.getStackTrace());
  if ( filteredStackTrace.length > 0 ) {
    if (super.getCause() !=  null) {
      StackTraceElement[] cause = Exceptions.getFilteredStackTrace(super.getCause().getStackTrace());
      if (cause.length > 0) {
        filteredStackTrace= add(cause, filteredStackTrace);
      }
    }
  } else {
    if (super.getCause() !=  null) {
      filteredStackTrace =  Exceptions.getFilteredStackTrace(super.getCause().getStackTrace());
    }
  }
  return Exceptions.getFilteredStackTrace(super.getStackTrace());
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

public static Map asMap(Exception ex) {
  StackTraceElement[] stackTrace = getFilteredStackTrace(ex.getStackTrace());
  List stackTraceList = Lists.list(stackTrace);
  List fullStackTrace = Lists.list(ex.getStackTrace());
  return map(
        "message", ex.getMessage(),
        "causeMessage", ex.getCause()!=null ? ex.getCause().getMessage() : "none",
        "stackTrace", stackTraceList,
        "fullStackTrace", fullStackTrace
    );
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

public static Map asMap(Exception ex) {
  StackTraceElement[] stackTrace = getFilteredStackTrace(ex.getStackTrace());
  List stackTraceList = Lists.list(stackTrace);
  List fullStackTrace = Lists.list(ex.getStackTrace());
  return map(
        "message", ex.getMessage(),
        "causeMessage", ex.getCause()!=null ? ex.getCause().getMessage() : "none",
        "stackTrace", stackTraceList,
        "fullStackTrace", fullStackTrace
    );
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

StackTraceElement[] stackTrace = getFilteredStackTrace(ex.getStackTrace());

代码示例来源:origin: com.github.advantageous/boon-reflekt

StackTraceElement[] stackTrace = getFilteredStackTrace(ex.getStackTrace());

相关文章