ubuntu-dev-tools/ubuntutools/lp/udtexceptions.py
Benjamin Drung 3354b526b5 style: Format Python code with black
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00

41 lines
755 B
Python

class PackageNotFoundException(BaseException):
"""Thrown when a package is not found"""
pass
class SeriesNotFoundException(BaseException):
"""Thrown when a distroseries is not found"""
pass
class PocketDoesNotExistError(Exception):
"""Raised when a invalid pocket is used."""
pass
class ArchiveNotFoundException(BaseException):
"""Thrown when an archive for a distibution is not found"""
pass
class AlreadyLoggedInError(Exception):
"""Raised when a second login is attempted."""
pass
class ArchSeriesNotFoundException(BaseException):
"""Thrown when a distroarchseries is not found."""
pass
class InvalidDistroValueError(ValueError):
"""Thrown when distro value is invalid"""
pass