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

34 lines
756 B
Python
Raw Normal View History

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