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