hydra.error.system module

System-call error types.

class hydra.error.system.SystemError

Bases: object

SystemErrorCommandNotFound | SystemErrorPermissionDenied | SystemErrorInvalidWorkingDirectory | SystemErrorInterrupted | SystemErrorOther

COMMAND_NOT_FOUND = Name(value='commandNotFound')
INTERRUPTED = Name(value='interrupted')
INVALID_WORKING_DIRECTORY = Name(value='invalidWorkingDirectory')
OTHER = Name(value='other')
PERMISSION_DENIED = Name(value='permissionDenied')
TYPE_ = Name(value='hydra.error.system.SystemError')
class hydra.error.system.SystemErrorCommandNotFound(value: T)

Bases: Node[hydra.file.FilePath]

POSIX ENOENT: the executable named by Command.program does not exist or is not found on PATH. Reported by the exec family (XSH, https://pubs.opengroup.org/onlinepubs/9799919799/functions/execve.html)

class hydra.error.system.SystemErrorInterrupted

Bases: object

The call was interrupted before the child produced a result (a portable abstraction over POSIX EINTR and host-level kills); the child’s disposition is unknown

class hydra.error.system.SystemErrorInvalidWorkingDirectory(value: T)

Bases: Node[hydra.file.FilePath]

POSIX ENOENT or ENOTDIR raised by the implied chdir() to Command.workingDirectory

class hydra.error.system.SystemErrorOther(value: T)

Bases: Node[str]

Any other failure, carrying the host-provided error message verbatim (covers errno values not modeled above, such as EMFILE, ENOMEM, or E2BIG)

class hydra.error.system.SystemErrorPermissionDenied(value: T)

Bases: Node[hydra.file.FilePath]

POSIX EACCES: the executable exists but is not executable, or a path component denies search permission