Groovy Documentation

org.linkedin.groovy.util.rest
[Groovy] Class RestException

java.lang.Object
  java.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)...

Authors:
ypujante@linkedin.com


Field Summary
java.lang.String originalClassName

java.lang.String originalMessage

 
Constructor Summary
RestException(java.lang.String className, java.lang.String message, 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()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

originalClassName

public final java.lang.String originalClassName


originalMessage

public final java.lang.String originalMessage


 
Constructor Detail

RestException

RestException(java.lang.String className, java.lang.String message, StackTraceElement[] stackTrace)


 
Method Detail

fromJSON

static RestException fromJSON(java.lang.Object jsonRepresentation)
From a json representation (as built by {
link:
#toJSON(Throwable)) builds a rest exception


toJSON

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.


 

Groovy Documentation