public class AsyncOperationResult extends RefDataClass
Note: isc.defaultAsyncOperationCatchCallback()
can be used to
provide default error handling for a Promise-based asynchronous operation.
id
factoryCreated, factoryProperties
Constructor and Description |
---|
AsyncOperationResult() |
AsyncOperationResult(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCancellationReason()
If this is a CANCELED-
type result, the reason for
cancellation, if provided. |
java.lang.String |
getDisabledMessage()
If this is a DISABLED-
type result, a message stating that
the operation is disabled, if provided. |
java.lang.String |
getErrorMessage()
If this is an ERROR-
type result, a message stating the
error, if available. |
static AsyncOperationResult |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
AsyncOperationResultType |
getType()
The result type.
|
AsyncOperationResult |
setCancellationReason(java.lang.String cancellationReason)
If this is a CANCELED-
type result, the reason for
cancellation, if provided. |
AsyncOperationResult |
setDisabledMessage(java.lang.String disabledMessage)
If this is a DISABLED-
type result, a message stating that
the operation is disabled, if provided. |
AsyncOperationResult |
setErrorMessage(java.lang.String errorMessage)
If this is an ERROR-
type result, a message stating the
error, if available. |
AsyncOperationResult |
setType(AsyncOperationResultType type)
The result type.
|
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public AsyncOperationResult()
public AsyncOperationResult(com.google.gwt.core.client.JavaScriptObject jsObj)
public static AsyncOperationResult getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public AsyncOperationResult setCancellationReason(java.lang.String cancellationReason)
type
result, the reason for
cancellation, if provided.cancellationReason
- New cancellationReason value. Default value is nullAsyncOperationResult
instance, for chaining setter callsCancellationController.cancel()
public java.lang.String getCancellationReason()
type
result, the reason for
cancellation, if provided.CancellationController.cancel()
public AsyncOperationResult setDisabledMessage(java.lang.String disabledMessage)
type
result, a message stating that
the operation is disabled, if provided.disabledMessage
- New disabledMessage value. Default value is nullAsyncOperationResult
instance, for chaining setter callspublic java.lang.String getDisabledMessage()
type
result, a message stating that
the operation is disabled, if provided.public AsyncOperationResult setErrorMessage(java.lang.String errorMessage)
type
result, a message stating the
error, if available.errorMessage
- New errorMessage value. Default value is nullAsyncOperationResult
instance, for chaining setter callspublic java.lang.String getErrorMessage()
type
result, a message stating the
error, if available.public AsyncOperationResult setType(AsyncOperationResultType type)
null
is interpreted as a non-successful result type.
type
- New type value. Default value is *initialized by the implementation*AsyncOperationResult
instance, for chaining setter callspublic AsyncOperationResultType getType()
null
is interpreted as a non-successful result type.