glpkg.error

Module Contents

exception glpkg.error.GlpkgError

Bases: Exception

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.

exception glpkg.error.MissingKey

Bases: GlpkgError

A required key is missing from glpkg.json

exception glpkg.error.WrongChecksumError(package_filename: str, expected_hash: str, actual_hash: str)

Bases: GlpkgError

Downloaded package checksum does not match the one in the lock file

exception glpkg.error.UnsupportedLockFileVersion

Bases: GlpkgError

glpkg_lock.json has unsupported version

exception glpkg.error.DownloadError(dest_path: pathlib.Path)

Bases: GlpkgError

File does not exist after downloading

exception glpkg.error.GlpkgJsonNotFoundError

Bases: GlpkgError

glpkg.json could not be found

exception glpkg.error.PackageNotFoundError(package_name: str)

Bases: GlpkgError

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.

exception glpkg.error.PackageFileNotFoundError(path: pathlib.Path)

Bases: GlpkgError

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.

exception glpkg.error.BuildCommandError(error: subprocess.CalledProcessError)

Bases: GlpkgError

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.

exception glpkg.error.PackageNotBuiltError(command: List[str], package_path: pathlib.Path)

Bases: GlpkgError

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.

exception glpkg.error.UndefinedVariableError(name: str, package_name: Optional[str] = None)

Bases: GlpkgError

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.

exception glpkg.error.ErrorResponse(status_code: int, message: Optional[str])

Bases: GlpkgError

A generic error for all errors that are handled in glpkg.app.run(), e.g. missing file or key.