• Grégory Wisniewski's avatar
    Add 'VerificationManager' for master's application. · a7630a68
    Grégory Wisniewski authored
    - Replace verification handler (statefull handler)
    - Include 'verifyData', 'verifyTransation' and verification related attributes.
    - Define 'runManager()' method for future purpose (with other managers).
    - Include all 'VerificationFailure' exception related handling.
    - Remove support of 'VERIFYING' cluster in 'changeClusterState' as the manager takes precedence.
    - Move VerificationException in verification module.
    
    git-svn-id: https://svn.erp5.org/repos/neo/trunk@1590 71dcc9de-d417-0410-9af5-da40c76e7ee4
    a7630a68
exception.py 975 Bytes
#
# Copyright (C) 2006-2010  Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

class NeoException(Exception):
    pass

class ElectionFailure(NeoException):
    pass

class PrimaryFailure(NeoException):
    pass

class OperationFailure(NeoException):
    pass

class DatabaseFailure(NeoException):
    pass