org.nuxeo.ecm.automation
Class ExitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.nuxeo.ecm.automation.OperationException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ExitException
public ExitException()
ExitException
public ExitException(Object output)
ExitException
public ExitException(Object output,
boolean rollback)
setOutput
public ExitException setOutput(Object output)
getOutput
public Object getOutput()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.