public final class

ActionResult

extends Object
java.lang.Object
   ↳ com.urbanairship.actions.ActionResult

Class Overview

Stores the results of running an Action.

Summary

Nested Classes
enum ActionResult.Status The run status of the action. 
Public Methods
Exception getException()
Retrieves the results exception.
ActionResult.Status 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
From class java.lang.Object

Public Methods

public Exception getException ()

Retrieves the results exception.

Returns
  • The result exception.

public ActionResult.Status getStatus ()

Retrieves the status of the action run.

Returns
  • The status of the action run.

public ActionValue getValue ()

Retrieves the result value.

Returns
  • The result value as an ActionValue.

public static ActionResult newEmptyResult ()

Factory method to create an empty result

public static ActionResult newErrorResult (Exception exception)

Factory method to create a result with an exception

Parameters
exception The result value

public static ActionResult newResult (ActionValue value)

Factory method to create a result with a value

Parameters
value The result value