Class ExceptionUtils
- java.lang.Object
-
- com.epam.reportportal.utils.formatting.ExceptionUtils
-
public class ExceptionUtils extends java.lang.ObjectUtility class for exception formatting.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLINE_DELIMITERstatic java.lang.StringSKIP_TRACE_MARKER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetStackTrace(java.lang.Throwable throwable, java.lang.Throwable baseThrowable)Get stack trace of the throwable excluding the stack trace of the base throwable.static java.lang.StringgetStackTrace(java.lang.Throwable throwable, java.lang.Throwable baseThrowable, boolean preserveCause)Get stack trace of the throwable excluding the stack trace of the base throwable.
-
-
-
Field Detail
-
SKIP_TRACE_MARKER
public static final java.lang.String SKIP_TRACE_MARKER
- See Also:
- Constant Field Values
-
LINE_DELIMITER
public static final java.lang.String LINE_DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStackTrace
public static java.lang.String getStackTrace(java.lang.Throwable throwable, java.lang.Throwable baseThrowable, boolean preserveCause)Get stack trace of the throwable excluding the stack trace of the base throwable.- Parameters:
throwable- Throwable to get stack trace frombaseThrowable- Throwable to exclude stack trace frompreserveCause- Preserve cause in the stack trace- Returns:
- Formatted stack trace
-
getStackTrace
public static java.lang.String getStackTrace(java.lang.Throwable throwable, java.lang.Throwable baseThrowable)Get stack trace of the throwable excluding the stack trace of the base throwable.- Parameters:
throwable- Throwable to get stack trace frombaseThrowable- Throwable to exclude stack trace from- Returns:
- Formatted stack trace
-
-