ptsexcept.py 772 Bytes
Newer Older
1 2 3
#!   /usr/bin/env   python
#    coding: utf8

4
class PtsException(Exception):
5 6
    pass

7
class PtsCritical(PtsException):
8 9 10
    """critical error, abort the whole test suite"""
    pass

11
class PtsError(PtsException):
12 13 14
    """error, continue remaining tests in test suite"""
    pass

15
class PtsUser(PtsException):
16 17 18
    """error, user intervention required"""
    pass

19
class PtsWarning(PtsException):
20 21 22
    """warning, a cautionary message should be displayed"""
    pass

23
class PtsInvalid(PtsException):
24 25
    """reserved: invalid parameters"""

26
class PtsNoBatch(PtsInvalid):
27 28 29
    """reserved: a suite was created without batch of tests to run"""
    pass

30
class PtsBadTestNo(PtsInvalid):
31 32 33
    """reserved: a bad test number was given"""
    pass

34 35
if __name__ == '__main__':
    pass