java.lang.Object | |
↳ | com.urbanairship.actions.ActionResult |
Stores the results of running an Action
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | ActionResult.Status |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATUS_ACTION_NOT_FOUND | The action was not performed because the action was not found
in the ActionRegistry . |
|||||||||
int | STATUS_COMPLETED | The action accepted the arguments and executed without an exception. | |||||||||
int | STATUS_EXECUTION_ERROR | The action encountered a runtime exception during execution. | |||||||||
int | STATUS_REJECTED_ARGUMENTS | The action was not performed because the arguments were rejected by either the predicate in the registry or the action. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Exception |
getException()
Retrieves the results exception.
| ||||||||||
int |
getStatus()
Retrieves the status of the action run.
| ||||||||||
ActionValue |
getValue()
Retrieves the result value.
| ||||||||||
static ActionResult |
newEmptyResult()
Factory method to create an empty result
| ||||||||||
static ActionResult |
newErrorResult(Exception exception)
Factory method to create a result with an exception
| ||||||||||
static ActionResult |
newResult(ActionValue value)
Factory method to create a result with a value
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The action was not performed because the action was not found
in the ActionRegistry
. This value is
only possible if trying to run an action by name through the
ActionRunRequestFactory
.
The action accepted the arguments and executed without an exception.
The action encountered a runtime exception during execution. The exception field will contain the caught exception.
The action was not performed because the arguments were rejected by either the predicate in the registry or the action.
Retrieves the status of the action run.
Retrieves the result value.
Factory method to create a result with an exception
exception | The result value |
---|
Factory method to create a result with a value
value | The result value |
---|