예제 #1
0
파일: utils.py 프로젝트: pvbl/fpeam
    def __init__(self, value):
        """
        >>> raise VdtPathDoesNotExist('/not/a/path')
        Traceback (most recent call last):
        VdtValueTooSmallError: the path "/not/a/path" does not exist
        """

        ValidateError.__init__(self,
                               'the path "%s" does not exist' % (value, ))
예제 #2
0
파일: utils.py 프로젝트: pvbl/fpeam
    def __init__(self, value, max_length):
        """
        >>> raise VdtPathTooLong('/path/too/long')
        Traceback (most recent call last):
        VdtValueTooSmallError: the path "/path/too/long" exceeds the maximum length of <length> characters
        """

        ValidateError.__init__(
            self, 'the path "%s" exceeds the maximum length of %s characters' %
            (value, max_length))
예제 #3
0
 def __init__(self, value, reason):
     ValidateError.__init__(self, "the value '%s' is unacceptable.\n"
             "Reason: %s" % (value, reason))
예제 #4
0
파일: myutils.py 프로젝트: jedagda/eceld
 def __init__(self, value, reason):
     ValidateError.__init__(
         self, "the value '%s' is unacceptable.\n"
         "Reason: %s" % (value, reason))