org.jboss.byteman.rule.exception
Class EarlyReturnException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.byteman.rule.exception.ExecuteException
                  extended by org.jboss.byteman.rule.exception.EarlyReturnException
All Implemented Interfaces:
java.io.Serializable

public class EarlyReturnException
extends ExecuteException

Specialization of ExecuteException which is used to cause a trigger method to return early the trigger point, possibly supplying an object to be returned. This is used to implement the RETURN action

See Also:
Serialized Form

Field Summary
private  java.lang.Object returnValue
           
 
Constructor Summary
EarlyReturnException(java.lang.String message)
           
EarlyReturnException(java.lang.String message, java.lang.Object returnValue)
           
EarlyReturnException(java.lang.String message, java.lang.Throwable th)
           
EarlyReturnException(java.lang.String message, java.lang.Throwable th, java.lang.Object returnValue)
           
 
Method Summary
 java.lang.Object getReturnValue()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

returnValue

private java.lang.Object returnValue
Constructor Detail

EarlyReturnException

public EarlyReturnException(java.lang.String message)

EarlyReturnException

public EarlyReturnException(java.lang.String message,
                            java.lang.Throwable th)

EarlyReturnException

public EarlyReturnException(java.lang.String message,
                            java.lang.Object returnValue)

EarlyReturnException

public EarlyReturnException(java.lang.String message,
                            java.lang.Throwable th,
                            java.lang.Object returnValue)
Method Detail

getReturnValue

public java.lang.Object getReturnValue()