Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TrySetException(Exception)

Raise completion with an exception.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool TrySetException(Exception exception)

Parameters

exception

Exception to raise in the continuation.

Returns

Type

Description

boolIndicates if the completion was successfully raised.