public static enum Result.Status extends java.lang.Enum<Result.Status>
This indicates the status of all scene actions.
Enum Constant and Description |
---|
ERROR_ANIM_NOT_FOUND |
ERROR_INFLATION |
ERROR_LOCK_INTERRUPTED |
ERROR_NOT_A_DRAWABLE |
ERROR_NOT_INFLATED |
ERROR_REFLECTION |
ERROR_RENDER |
ERROR_TIMEOUT |
ERROR_UNKNOWN |
ERROR_VIEWGROUP_NO_CHILDREN |
NOT_IMPLEMENTED |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
Result |
createResult()
Returns a
Result object with this status. |
Result |
createResult(java.lang.Object data)
Returns a
Result object with this status, and the given data. |
Result |
createResult(java.lang.String errorMessage)
Returns a
ERROR_UNKNOWN result with the given message |
Result |
createResult(java.lang.String errorMessage,
java.lang.Throwable throwable)
Returns a
ERROR_UNKNOWN result with the given message and throwable |
static Result.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Result.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Result.Status SUCCESS
public static final Result.Status NOT_IMPLEMENTED
public static final Result.Status ERROR_TIMEOUT
public static final Result.Status ERROR_LOCK_INTERRUPTED
public static final Result.Status ERROR_INFLATION
public static final Result.Status ERROR_VIEWGROUP_NO_CHILDREN
public static final Result.Status ERROR_NOT_INFLATED
public static final Result.Status ERROR_RENDER
public static final Result.Status ERROR_ANIM_NOT_FOUND
public static final Result.Status ERROR_NOT_A_DRAWABLE
public static final Result.Status ERROR_REFLECTION
public static final Result.Status ERROR_UNKNOWN
public static Result.Status[] values()
for (Result.Status c : Result.Status.values()) System.out.println(c);
public static Result.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Result createResult()
Result
object with this status.public Result createResult(java.lang.Object data)
Result
object with this status, and the given data.Result.getData()
public Result createResult(java.lang.String errorMessage, java.lang.Throwable throwable)
ERROR_UNKNOWN
result with the given message and throwableerrorMessage
- the error messagethrowable
- the throwablepublic Result createResult(java.lang.String errorMessage)
ERROR_UNKNOWN
result with the given messageerrorMessage
- the error message