legate.core.operation.AutoTask.throws_exception#

AutoTask.throws_exception(exn_type: type) None#

Declares that the task can raise an exception. If more than one exception is added to the task, they are numbered by the order in which they are added, and those numbers are used to refer to them in the C++ task.

Parameters:

exn_type (Type) – Type of exception