Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation
Class ExitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.nuxeo.ecm.automation.OperationException
              extended by org.nuxeo.ecm.automation.ExitException
All Implemented Interfaces:
Serializable

public class ExitException
extends OperationException

Throw it from an operation to interrupt a chain execution. The chain terminates silently (without throwing an exception) and the output object is returned as the chain output.

Also, you can set the rollback argument to true to rollback the current transaction.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
ExitException()
           
ExitException(Object output)
           
ExitException(Object output, boolean rollback)
           
 
Method Summary
 Object getOutput()
           
 ExitException setOutput(Object output)
           
 
Methods inherited from class org.nuxeo.ecm.automation.OperationException
isRollback, setNoRollback
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExitException

public ExitException()

ExitException

public ExitException(Object output)

ExitException

public ExitException(Object output,
                     boolean rollback)
Method Detail

setOutput

public ExitException setOutput(Object output)

getOutput

public Object getOutput()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.