Class AsyncOperationHandleException
Exception thrown when awaiting a failed AsyncOperationHandle or
AsyncOperationHandle<TObject> directly (e.g. await handle;).
Implements
Inherited Members
Namespace: UnityEngine.ResourceManagement.Exceptions
Assembly: Unity.ResourceManager.dll
Syntax
public class AsyncOperationHandleException : OperationException, ISerializable
Remarks
Handle is a reference dedicated to this exception, distinct from the awaited handle -
which ToAwaitable already releases automatically on failure (unless it already had its own
release-on-completion listener, e.g. from an autoReleaseHandle: true API). This lets a caller
who only awaited still inspect Status or a partial
Result and release it via Handle.
Constructors
| Name | Description |
|---|---|
| AsyncOperationHandleException(AsyncOperationHandle, string, Exception) | Creates a new instance of AsyncOperationHandleException. |
Properties
| Name | Description |
|---|---|
| Handle | The handle for the operation that failed. See the remarks on this type for its release ownership. |