|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.linkedin.groovy.util.rest.RestException
class RestException extends java.lang.Exception
Exception which will contain the original exception (which may not be available in this VM)...
Field Summary | |
---|---|
java.lang.String |
originalClassName
|
java.lang.String |
originalMessage
|
Constructor Summary | |
RestException(java.lang.String className, java.lang.String message, java.lang.StackTraceElement[] stackTrace)
|
Method Summary | |
---|---|
static RestException
|
fromJSON(java.lang.Object jsonRepresentation)
From a json representation (as built by {@link #toJSON(Throwable)) builds a rest exception |
static java.lang.Object
|
toJSON(java.lang.Throwable th)
'Serializes' the throwable into a json representation in order to be able to rebuild it later. |
Methods inherited from class java.lang.Exception | |
---|---|
java.lang.Exception#printStackTrace(java.io.PrintStream), java.lang.Exception#printStackTrace(), java.lang.Exception#printStackTrace(java.io.PrintWriter), java.lang.Exception#fillInStackTrace(), java.lang.Exception#getCause(), java.lang.Exception#initCause(java.lang.Throwable), java.lang.Exception#toString(), java.lang.Exception#getMessage(), java.lang.Exception#getLocalizedMessage(), java.lang.Exception#getStackTrace(), java.lang.Exception#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.Exception#wait(), java.lang.Exception#wait(long), java.lang.Exception#wait(long, int), java.lang.Exception#equals(java.lang.Object), java.lang.Exception#hashCode(), java.lang.Exception#getClass(), java.lang.Exception#notify(), java.lang.Exception#notifyAll() |
Methods inherited from class java.lang.Throwable | |
---|---|
java.lang.Throwable#printStackTrace(java.io.PrintStream), java.lang.Throwable#printStackTrace(), java.lang.Throwable#printStackTrace(java.io.PrintWriter), java.lang.Throwable#fillInStackTrace(), java.lang.Throwable#getCause(), java.lang.Throwable#initCause(java.lang.Throwable), java.lang.Throwable#toString(), java.lang.Throwable#getMessage(), java.lang.Throwable#getLocalizedMessage(), java.lang.Throwable#getStackTrace(), java.lang.Throwable#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.Throwable#wait(), java.lang.Throwable#wait(long), java.lang.Throwable#wait(long, int), java.lang.Throwable#equals(java.lang.Object), java.lang.Throwable#hashCode(), java.lang.Throwable#getClass(), java.lang.Throwable#notify(), java.lang.Throwable#notifyAll() |
Field Detail |
---|
public final java.lang.String originalClassName
public final java.lang.String originalMessage
Constructor Detail |
---|
RestException(java.lang.String className, java.lang.String message, java.lang.StackTraceElement[] stackTrace)
Method Detail |
---|
static RestException fromJSON(java.lang.Object jsonRepresentation)
static java.lang.Object toJSON(java.lang.Throwable th)
Groovy Documentation