Errors

AlreadyExistsError

A resource already exists.

class AlreadyExistsError extends Error

ClientClosedError

Thrown when attempting operations on a detached Sandbox.

class ClientClosedError extends Error

ConflictError

The current state of a resource conflicts with the requested operation.

class ConflictError extends Error

FunctionTimeoutError

Function execution exceeds the allowed time limit.

class FunctionTimeoutError extends Error

InternalFailure

A retryable internal error from Modal.

class InternalFailure extends Error

InvalidError

A request or other operation was invalid.

class InvalidError extends Error

NotFoundError

Some resource was not found.

class NotFoundError extends Error

QueueEmptyError

The Queue is empty.

class QueueEmptyError extends Error

QueueFullError

The Queue is full.

class QueueFullError extends Error

RemoteError

An error on the Modal server, or a Python exception.

class RemoteError extends Error

SandboxFilesystemDirectoryNotEmptyError

A directory was expected to be empty but is not.

class SandboxFilesystemDirectoryNotEmptyError extends SandboxFilesystemError

SandboxFilesystemError

Errors from invalid Sandbox FileSystem operations.

class SandboxFilesystemError extends Error

SandboxFilesystemFileTooLargeError

A file exceeds the maximum allowed size for a read operation.

class SandboxFilesystemFileTooLargeError extends SandboxFilesystemError

SandboxFilesystemIsADirectoryError

A file operation was attempted on a path that resolves to a directory.

class SandboxFilesystemIsADirectoryError extends SandboxFilesystemError

SandboxFilesystemNotADirectoryError

A directory operation encountered a path component that is not a directory.

class SandboxFilesystemNotADirectoryError extends SandboxFilesystemError

SandboxFilesystemNotFoundError

A file or directory is not found.

class SandboxFilesystemNotFoundError extends SandboxFilesystemError

SandboxFilesystemPathAlreadyExistsError

A path already exists and the operation requires it to be absent.

class SandboxFilesystemPathAlreadyExistsError extends SandboxFilesystemError

SandboxFilesystemPermissionError

Permission is denied for a file operation.

class SandboxFilesystemPermissionError extends SandboxFilesystemError

SandboxTimeoutError

Sandbox operations that exceed the allowed time limit.

class SandboxTimeoutError extends Error

TimeoutError

An operation exceeds the allowed time limit.

class TimeoutError extends Error