ubuntu-dev-tools/ubuntutools/lp/udtexceptions.py

27 lines
685 B
Python
Raw Normal View History

class PackageNotFoundException(BaseException):
"""Thrown when a package is not found"""
2017-05-01 00:20:03 +02:00
class SeriesNotFoundException(BaseException):
"""Thrown when a distroseries is not found"""
2017-05-01 00:20:03 +02:00
class PocketDoesNotExistError(Exception):
"""Raised when a invalid pocket is used."""
2017-05-01 00:20:03 +02:00
class ArchiveNotFoundException(BaseException):
"""Thrown when an archive for a distibution is not found"""
2017-05-01 00:20:03 +02:00
class AlreadyLoggedInError(Exception):
"""Raised when a second login is attempted."""
2017-05-01 00:20:03 +02:00
class ArchSeriesNotFoundException(BaseException):
"""Thrown when a distroarchseries is not found."""
class InvalidDistroValueError(ValueError):
"""Thrown when distro value is invalid"""