예제 #1
0
파일: warnings.py 프로젝트: parastoo-62/pie
 def __init__(self, context):
     message = "Division by zero"
     Warning.__init__(self, context, message)
예제 #2
0
파일: warnings.py 프로젝트: parastoo-62/pie
 def __init__(self, context, include_function, included_file, include_path):
     message = "%s(): Failed opening '%s' for inclusion " \
         "(include_path='%s')" % (include_function, included_file, include_path)
     Warning.__init__(self, context, message)
예제 #3
0
파일: warnings.py 프로젝트: parastoo-62/pie
 def __init__(self, context, include_function, included_file):
     message = "%s(%s): failed to open stream: "\
               "No such file or directory" % (include_function, included_file)
     Warning.__init__(self, context, message)
예제 #4
0
파일: warnings.py 프로젝트: parastoo-62/pie
    def __init__(self, context, given, expected, position, name):
        message = "%s() expects parameter %s to be %s, %s given" \
            % (name, position, expected, given)

        Warning.__init__(self, context, message)
예제 #5
0
파일: warnings.py 프로젝트: parastoo-62/pie
    def __init__(self, context, given, expected, name):
        message = "%s() expects at least %s parameters, %s given" \
            % (name, expected, given)

        Warning.__init__(self, context, message)
예제 #6
0
파일: warnings.py 프로젝트: parastoo-62/pie
    def __init__(self, context, arg_position, function):
        self.function = function
        message = "Missing argument %s for %s(), called" \
            % (arg_position, function.name)

        Warning.__init__(self, context, message)