public class ExceptionUtils extends Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SrampUiException |
createRemoteException(Throwable root)
Creates a remote exception that can be thrown to the client.
|
static SrampUiException |
createUiException(String message,
Throwable root)
Creates a UI exception that can be thrown to the client.
|
static Throwable |
getRootCause(Throwable t)
Gets the root exception from the given
Throwable. |
static String |
getRootStackTrace(Throwable t)
Gets the root stack trace as a string.
|
public static String getRootStackTrace(Throwable t)
t - public static Throwable getRootCause(Throwable t)
Throwable.t - public static SrampUiException createUiException(String message, Throwable root)
message - root - public static SrampUiException createRemoteException(Throwable root)
root - Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.