public final class ExceptionExtensions extends Object
ExceptionExtensions.| Constructor and Description |
|---|
ExceptionExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getStackTrace(Throwable throwable)
Gets the stacktrace as string.
|
static String |
getStackTraceElements(Throwable throwable)
Gets the stack trace elements from the given Throwable and returns a
String object
from it. |
static <T> String |
toString(T object)
Deprecated.
use instead the same name method in class
StringExtensions. Note: will be
removed in the next minor release |
public static String getStackTrace(Throwable throwable) throws IOException
throwable - the throwableIOException - Signals that an I/O exception has occurred.public static String getStackTraceElements(Throwable throwable) throws IOException
String object
from it.throwable - the throwableIOException - Signals that an I/O exception has occurred.public static <T> String toString(T object)
StringExtensions. Note: will be
removed in the next minor releaseObject.toString() and if the given object is null a corresponding
information.T - the generic typeobject - the objectCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.