Beispiel #1
0
    def __init__(self, msg):
        Error.__init__(self, msg)

        self.parser_file = _(
            '<Unknown>')  # T: placeholder for unknown file name
        self.parser_text = ''
        self.parser_line_offset = (0, 0)
Beispiel #2
0
 def __init__(self, path):
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'Folder not empty: %s' % path)
Beispiel #3
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'No permission to write file: %s' % path)
Beispiel #4
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'File changed on disk: %s' % path)
Beispiel #5
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'File or folder already exists: %s' % path)
Beispiel #6
0
 def __init__(self, path):
     self.file = path
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'No such file or folder: %s' % path)
Beispiel #7
0
 def __init__(self):
     Error.__init__(self, _('Please select more than one line of text'))
Beispiel #8
0
 def __init__(self, path):
     Error.__init__(self, _('File path too long: %s') % path)
Beispiel #9
0
 def __init__(self, basename):
     Error.__init__(self, _('File name too long: %s') % basename)
Beispiel #10
0
	def __init__(self, msg):
		Error.__init__(self, msg)

		self.parser_file = _('<Unknown>') # T: placeholder for unknown file name
		self.parser_text = ''
		self.parser_line_offset = (0, 0)