1 ''' 2 A package for easily defining various Qube back ends 3 ''' 4 5 -class QubeBackEndError(Exception): 6 ''' 7 An exception class used to indicate an error condition specfic to a Qube jobtype backend 8 ''' 9 - def __init__(self, value): 10 ''' 11 @param value: an error message 12 @type value: C{str} 13 ''' 14 self.value = value 15 16 - def __str__(self): 17 ''' 18 @return: The string representation of the error message that was passed when raising this exception 19 @rtype: C{str} 20 ''' 21 return repr(self.value) 22