public static final class EvalCommand.EvalAction extends Object implements CliSession.Action, Session.TransactionalAction
CliSession.Action used by the EvalCommand allowing access to the
EvalException that occurred, if any.
This class is needed because EvalCommand catches and handles EvalExceptions
thrown during expression evaluation itself, swallowing them, making it appear as if the
command were always successful.
| Modifier and Type | Method and Description |
|---|---|
EvalException |
getEvalException()
Get the
EvalException that occurred when evaluating the expression, if any. |
void |
run(CliSession session)
Perform some action using the given
CliSession while a transaction is open. |
public void run(CliSession session) throws Exception
CliSession.ActionCliSession while a transaction is open.run in interface CliSession.Actionsession - session with open transactionException - if an error occurspublic EvalException getEvalException()
EvalException that occurred when evaluating the expression, if any.Copyright © 2016. All rights reserved.