modal.Error
class Error(Exception)
Base error class for all Modal errors.
Usage
import modal
try:
with stub.run():
f.call()
except modal.Error:
# Catch any exception raised by Modal's systems.
print("Responding to error...")