Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

error.py

# File: error.py
# Author: Toshio Kuratomi <toshio@tiki-lounge.com>
# Date: 25 August 2004
# Copyright: Toshio Kuratomi
# License: GPL
# Id: $Id: error.py 188 2005-06-14 00:55:59Z badger $
'''
Exception classes for QA Assistant.
'''
__revision__ = '$Rev: 188 $'

00012 class Error(Exception):
    '''Base class for Exceptions in QA Assistant.'''
    def __init__(self, msg):
        Exception.__init__(self, msg)
        self.msg = msg

00018 class DuplicateItem(Error):
    '''An item duplicates a value already present in a checklist.'''
    pass
    
00022 class InvalidResolution(Error):
    '''The resolution is not valid because it is not listed within the
       resolutionlist for the checklist item.
    '''
    pass
    
00028 class InvalidChecklist(Error):
    '''The given checklist is invalid for some reason.'''
    pass
    
00032 class CannotAccessFile(IOError):
    '''We were unable to access the given filename.'''
    pass
    
00036 class InvalidFunctions(Error):
    '''The functions referenced from a checklist were invalid.'''
    pass
00039 class UnknownHashType(Error):
    '''The specified hash is not one we're familiar with.'''
    pass

# GPG Exceptions
00044 class GPGError(Error):
    '''An error generated by gpg.'''
    pass

00048 class BadPassphrase(GPGError):
    '''Passphrase didn't work with GPG.'''
    pass

00052 class NoSecretKey(GPGError):
    '''There was no secret key for the specified user id.'''
    pass

00056 class NotGPGCompatible(GPGError):
    '''The program selected in the preferences isn't compatible with gpg.'''
    pass
    
00060 class NoOut(GPGError):
    '''The signing did not generate any output.'''
    pass

Generated by  Doxygen 1.6.0   Back to index