Groovy Documentation

org.linkedin.glu.agent.api
[Groovy] Class ScriptExecutionCauseException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          org.linkedin.glu.agent.api.AgentException
              org.linkedin.glu.agent.api.ScriptException
                  org.linkedin.glu.agent.api.ScriptExecutionCauseException

class ScriptExecutionCauseException
extends ScriptException

The purpose of this class is to make sure that the exception is always serializable which unfortunately is not always the case. For example, uncovered with glu-27, groovy throws a MissingPropertyException where one of the field is a Class object. Although the Class object itself is serializable, it is not deserializable without the proper ClassLoader!

Authors:
yan@pongasoft.com


Property Summary
java.lang.String originalClassname

 
Constructor Summary
ScriptExecutionCauseException(java.lang.String message)

ScriptExecutionCauseException(java.lang.Throwable throwable)

 
Method Summary
static ScriptExecutionCauseException create(java.lang.Throwable throwable)

java.lang.Throwable initCause(java.lang.Throwable throwable)

 
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()
 

Property Detail

originalClassname

java.lang.String originalClassname


 
Constructor Detail

ScriptExecutionCauseException

ScriptExecutionCauseException(java.lang.String message)


ScriptExecutionCauseException

ScriptExecutionCauseException(java.lang.Throwable throwable)


 
Method Detail

create

static ScriptExecutionCauseException create(java.lang.Throwable throwable)


initCause

@Override
java.lang.Throwable initCause(java.lang.Throwable throwable)


 

Groovy Documentation