Path: blob/master/elisp/emacs-for-python/rope-dist/rope/base/exceptions.py
1415 views
class RopeError(Exception):1"""Base exception for rope"""234class ResourceNotFoundError(RopeError):5"""Resource not found exception"""678class RefactoringError(RopeError):9"""Errors for performing a refactoring"""101112class InterruptedTaskError(RopeError):13"""The task has been interrupted"""141516class HistoryError(RopeError):17"""Errors for history undo/redo operations"""181920class ModuleNotFoundError(RopeError):21"""Module not found exception"""222324class AttributeNotFoundError(RopeError):25"""Attribute not found exception"""262728class NameNotFoundError(RopeError):29"""Name not found exception"""303132class BadIdentifierError(RopeError):33"""The name cannot be resolved"""343536class ModuleSyntaxError(RopeError):37"""Module has syntax errors3839The `filename` and `lineno` fields indicate where the error has40occurred.4142"""4344def __init__(self, filename, lineno, message):45self.filename = filename46self.lineno = lineno47self.message_ = message48super(ModuleSyntaxError, self).__init__(49'Syntax error in file <%s> line <%s>: %s' %50(filename, lineno, message))515253class ModuleDecodeError(RopeError):54"""Cannot decode module"""5556def __init__(self, filename, message):57self.filename = filename58self.message_ = message59super(ModuleDecodeError, self).__init__(60'Cannot decode file <%s>: %s' % (filename, message))616263