public class AsyncOperationResult extends DataClass
Note: isc.defaultAsyncOperationCatchCallback()
can be used to
provide default error handling for a Promise-based asynchronous operation.
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 |
getErrorMessage()
If this is an ERROR-
type result, a message describing 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 |
setErrorMessage(java.lang.String errorMessage)
If this is an ERROR-
type result, a message describing the
error, if available. |
AsyncOperationResult |
setType(AsyncOperationResultType type)
The result type.
|
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 setErrorMessage(java.lang.String errorMessage)
type
result, a message describing 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 describing the
error, if available.public AsyncOperationResult setType(AsyncOperationResultType type)
It is up to the implementation to define the meaning of type null
. It is recommended,
though, that implementations do not use null
and instead specify an explicit AsyncOperationResultType
.
type
- New type value. Default value is *initialized by the implementation*AsyncOperationResult
instance, for chaining setter callspublic AsyncOperationResultType getType()
It is up to the implementation to define the meaning of type null
. It is recommended,
though, that implementations do not use null
and instead specify an explicit AsyncOperationResultType
.