Source code for ZEO.Exceptions

##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
##############################################################################
"""Exceptions for ZEO."""

import transaction.interfaces
from ZODB.POSException import StorageError


[docs] class ClientStorageError(StorageError): """An error occurred in the ZEO Client Storage. """
[docs] class UnrecognizedResult(ClientStorageError): """A server call returned an unrecognized result. """
[docs] class ClientDisconnected(ClientStorageError, transaction.interfaces.TransientError): """The database storage is disconnected from the storage. """
[docs] class ProtocolError(ClientStorageError): """A client contacted a server with an incomparible protocol """
[docs] class ServerException(ClientStorageError): """ """