Package 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 theoutputobject is returned as the chain output.Also, you can set the
rollbackargument to true to rollback the current transaction.- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Objectoutput-
Fields inherited from class org.nuxeo.ecm.automation.OperationException
rollback
-
-
Constructor Summary
Constructors Constructor Description ExitException()ExitException(Object output)ExitException(Object output, boolean rollback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetOutput()ExitExceptionsetOutput(Object output)-
Methods inherited from class org.nuxeo.ecm.automation.OperationException
isRollback, setNoRollback
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
output
protected Object output
-
-
Method Detail
-
setOutput
public ExitException setOutput(Object output)
-
getOutput
public Object getOutput()
-
-