IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

HostHazardError

HostHazardError​

class max.driver.HostHazardError

source

Bases: RuntimeError

Raised when host code waits on a completion whose producer failed.

Host-hazard tracking orders host access behind the device work that writes a buffer. When that work fails, the completion is poisoned, and waiting on it (or touching the buffers it covers) raises this error without blocking. The message carries the failed producer’s rendered traceback.