Example #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)
Example #2
0
 def __init__(self, path):
     path = path.path if hasattr(path, 'path') else path
     Error.__init__(self, 'Folder not empty: %s' % path)
Example #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)
Example #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)
Example #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)
Example #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)
Example #7
0
 def __init__(self):
     Error.__init__(self, _('Please select more than one line of text'))
Example #8
0
 def __init__(self, path):
     Error.__init__(self, _('File path too long: %s') % path)
Example #9
0
 def __init__(self, basename):
     Error.__init__(self, _('File name too long: %s') % basename)
Example #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)