rope_py3k / rope / base /

class RopeError(Exception):
    """Base exception for rope"""

class ResourceNotFoundError(RopeError):
    """Resource not found exception"""

class RefactoringError(RopeError):
    """Errors for performing a refactoring"""

class InterruptedTaskError(RopeError):
    """Errors for performing a refactoring"""

class HistoryError(RopeError):
    """Errors for history undo/redo operations"""

class ModuleNotFoundError(RopeError):
    """Module not found exception"""

class AttributeNotFoundError(RopeError):
    """Attribute not found exception"""

class NameNotFoundError(RopeError):
    """Attribute not found exception"""

class ModuleSyntaxError(RopeError):
    """Module has syntax errors

    The `filename` and `lineno` fields indicate where the error has


    def __init__(self, filename, lineno, message):
        self.filename = filename
        self.lineno = lineno
        self.message_ = message
        super(ModuleSyntaxError, self).__init__(
            'Syntax error in file <%s> line <%s>: %s' %
            (filename, lineno, message))