# Path: oslo_db/_i18n.py

# 
# Path: oslo_db/warning.py
# class NotSupportedWarning(Warning):
# class OsloDBDeprecationWarning(DeprecationWarning):


from debtcollector import moves
from oslo_utils.excutils import CausedByException
from oslo_db._i18n import _
from oslo_db import warning

    The exception is a subclass of AttributeError so that
    normal Python missing attribute behaviors are maintained, such
    as support for ``getattr(context, 'session', None)``.


    """


class ContextNotRequestedError(AttributeError):
    """Error raised when requesting a not-setup enginefacade attribute.

    This applies to the ``session`` and ``connection`` attributes
    of a user-defined context and/or RequestContext object, when they
    are accessed *within* the scope of an enginefacade decorator
    or context manager, but the context has not requested that
    attribute (e.g. like "with enginefacade.connection.using(context)"
    and "context.session" is requested).

    """


class CantStartEngineError(Exception):
    """Error raised when the enginefacade cannot start up correctly."""


moves.moved_class(warning.NotSupportedWarning,
                  'NotSupportedWarning',
                  __name__, version='Stein')


# Path: oslo_db/_i18n.py

# 
# Path: oslo_db/warning.py
# class NotSupportedWarning(Warning):
# class OsloDBDeprecationWarning(DeprecationWarning):


# Path: oslo_db/exception.py
from debtcollector import moves
from oslo_utils.excutils import CausedByException
from oslo_db._i18n import _
from oslo_db import warning


    The exception is a subclass of AttributeError so that
    normal Python missing attribute behaviors are maintained, such
    as support for ``getattr(context, 'session', None)``.


    """


class ContextNotRequestedError(AttributeError):
    """Error raised when requesting a not-setup enginefacade attribute.

    This applies to the ``session`` and ``connection`` attributes
    of a user-defined context and/or RequestContext object, when they
    are accessed *within* the scope of an enginefacade decorator
    or context manager, but the context has not requested that
    attribute (e.g. like "with enginefacade.connection.using(context)"
    and "context.session" is requested).

    """


class CantStartEngineError(Exception):
    """Error raised when the enginefacade cannot start up correctly."""


moves.moved_class(warning.NotSupportedWarning,
                  'NotSupportedWarning',
                  __name__, version='Stein')


moves.moved_class(warning.OsloDBDeprecationWarning,