legate.core.AutoTask.throws_exception#

AutoTask.throws_exception(self, type exception_type) void#

Set which exception is thrown by the task.

This routine may be called multiple times to indicate that the task throws multiple exceptions. Each exception is added to the set of thrown exceptions. The exception types are deduplicated.

Parameters:

exception_type (type) – The type of exception thrown by the task.