public final class ExceptionUtils extends Object
ExceptionUtils class provides useful methods for working with Exceptions.| Modifier and Type | Method and Description |
|---|---|
static Throwable |
getAppropriateTridionCause(Throwable throwable)
This method loops all inner most causes and returns first tridion throwable object.
|
static String |
getMessageAndStackTrace(Throwable throwable)
Creates a string representation of the exception.
|
static String |
getStackTrace(Throwable throwable)
Creates a string representation of the stacktrace of the throwable.
|
public static String getMessageAndStackTrace(Throwable throwable)
throwable - The Throwable that should be converted to a String.public static String getStackTrace(Throwable throwable)
throwable - The Throwable for which the stacktrace should be converted to a String.public static Throwable getAppropriateTridionCause(Throwable throwable)
throwable - The throwable for which it should get deepest tridion cause.Copyright © 2017 SDL Group. All rights reserved.