Errors
AlreadyExistsError
A resource already exists.
class AlreadyExistsError extends ErrorClientClosedError
Thrown when attempting operations on a detached Sandbox.
class ClientClosedError extends ErrorConflictError
The current state of a resource conflicts with the requested operation.
class ConflictError extends ErrorFunctionTimeoutError
Function execution exceeds the allowed time limit.
class FunctionTimeoutError extends ErrorInternalFailure
A retryable internal error from Modal.
class InternalFailure extends ErrorInvalidError
A request or other operation was invalid.
class InvalidError extends ErrorNotFoundError
Some resource was not found.
class NotFoundError extends ErrorQueueEmptyError
The Queue is empty.
class QueueEmptyError extends ErrorQueueFullError
The Queue is full.
class QueueFullError extends ErrorRemoteError
An error on the Modal server, or a Python exception.
class RemoteError extends ErrorSandboxFilesystemDirectoryNotEmptyError
A directory was expected to be empty but is not.
class SandboxFilesystemDirectoryNotEmptyError extends SandboxFilesystemErrorSandboxFilesystemError
Errors from invalid Sandbox FileSystem operations.
class SandboxFilesystemError extends ErrorSandboxFilesystemFileTooLargeError
A file exceeds the maximum allowed size for a read operation.
class SandboxFilesystemFileTooLargeError extends SandboxFilesystemErrorSandboxFilesystemIsADirectoryError
A file operation was attempted on a path that resolves to a directory.
class SandboxFilesystemIsADirectoryError extends SandboxFilesystemErrorSandboxFilesystemNotADirectoryError
A directory operation encountered a path component that is not a directory.
class SandboxFilesystemNotADirectoryError extends SandboxFilesystemErrorSandboxFilesystemNotFoundError
A file or directory is not found.
class SandboxFilesystemNotFoundError extends SandboxFilesystemErrorSandboxFilesystemPathAlreadyExistsError
A path already exists and the operation requires it to be absent.
class SandboxFilesystemPathAlreadyExistsError extends SandboxFilesystemErrorSandboxFilesystemPermissionError
Permission is denied for a file operation.
class SandboxFilesystemPermissionError extends SandboxFilesystemErrorSandboxTimeoutError
Sandbox operations that exceed the allowed time limit.
class SandboxTimeoutError extends ErrorTimeoutError
An operation exceeds the allowed time limit.
class TimeoutError extends Error