legate.core.TaskContext.can_raise_exception#

TaskContext.can_raise_exception(self) bool#

Get whether a task is allowed to raise exceptions.

If a task is not allowed to raise an exception, but still raises one, the runtime will print the exception and promptly abort.

Returns:

True if this task may raise exceptions, False otherwise.

Return type:

bool