Commits

Thomas Waldmann  committed fcf221d

cleanup unused / obsolete exception classes

  • Participants
  • Parent commits 0a70177

Comments (0)

Files changed (2)

File MoinMoin/error.py

 # Copyright: 2004-2005 Nir Soffer <nirs@freeshell.org>
 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 
-""" MoinMoin errors
-
-    Supply Error class and sub classes used to raise various errors
+"""
+MoinMoin errors / exception classes
 """
 
 
 class InternalError(FatalError):
     """ Raise when internal fatal error is found """
 
-class NoConfigMatchedError(Exception):
-    """ we didn't find a configuration for this URL """
-    pass
-
-class ConvertError(FatalError):
-    """ Raise when html to storage format (e.g. 'wiki') conversion fails """
-    name = "MoinMoin Convert Error"
-
-

File MoinMoin/storage/error.py

 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 
 """
-    MoinMoin storage errors
+MoinMoin storage errors
 """
 
 
-from MoinMoin.i18n import _, L_, N_
 from MoinMoin.error import CompositeError
 
 
     """
     General class for exceptions on the storage layer.
     """
-    pass
-
-class AccessError(StorageError):
-    """
-    Raised if the action could not be commited because of access problems.
-    """
-    pass
-
-class CouldNotDestroyError(AccessError):
-    """
-    Raised if the item/revision in question could not be destroyed due to
-    an internal backend problem. NOT raised if the user does not have the
-    'destroy' privilege. This exception describes a technical deletion
-    problem, not missing ACLs.
-    """
-    pass
-
-class LockingError(AccessError):
-    """
-    Raised if the action could not be commited because the Item is locked
-    or the if the item could not be locked.
-    """
-    pass
 
 class BackendError(StorageError):
     """
     Raised if the backend couldn't commit the action.
     """
-    pass
 
 class NoSuchItemError(BackendError):
     """
     Raised if the requested item does not exist.
     """
-    pass
 
 class ItemAlreadyExistsError(BackendError):
     """
     Raised if the Item you are trying to create already exists.
     """
-    pass
 
 class NoSuchRevisionError(BackendError):
     """
     Raised if the requested revision of an item does not exist.
     """
-    pass
 
 class RevisionAlreadyExistsError(BackendError):
     """
     Raised if the Revision you are trying to create already exists.
     """
-    pass
 
-class RevisionNumberMismatchError(BackendError):
-    """
-    Raised if a revision number that is not greater than the most recent revision
-    number was passed or if the backend does not yet support non-contiguous or
-    non-zero-based revision numbers and the operation violated these
-    requirements.
-    """
-    pass
-