³ò
®d|Mc           @   sw  d  Z  d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d7 Z d e f d „  ƒ  YZ	 d7 Z
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d7 Z d e f d  „  ƒ  YZ e Z d! e f d" „  ƒ  YZ d# e f d$ „  ƒ  YZ d% e f d& „  ƒ  YZ d' e f d( „  ƒ  YZ d) e f d* „  ƒ  YZ d+ e f d, „  ƒ  YZ d- e f d. „  ƒ  YZ d/ e f d0 „  ƒ  YZ d1 e  f d2 „  ƒ  YZ! d3 e" f d4 „  ƒ  YZ# d5 e$ f d6 „  ƒ  YZ% d7 S(8   sÃ   Exceptions used with SQLAlchemy.

The base exception class is :class:`.SQLAlchemyError`.  Exceptions which are raised as a
result of DBAPI exceptions are all subclasses of
:class:`.DBAPIError`.

t   SQLAlchemyErrorc           B   s   e  Z d  Z RS(   s   Generic error class.(   t   __name__t
   __module__t   __doc__(    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR       s   t   ArgumentErrorc           B   s   e  Z d  Z RS(   s“   Raised when an invalid or conflicting function argument is supplied.

    This error generally corresponds to construction time state errors.

    (   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR      s   t   CircularDependencyErrorc           B   s   e  Z d  Z d „  Z RS(   sB   Raised by topological sorts when a circular dependency is detectedc         C   s:   | d | | f 7} t  i |  | ƒ | |  _ | |  _ d  S(   Ns   : cycles: %r all edges: %r(   R    t   __init__t   cyclest   edges(   t   selft   messageR   R   (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR      s    	(   R   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR      s   t   CompileErrorc           B   s   e  Z d  Z RS(   s2   Raised when an error occurs during SQL compilation(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   $   s   t   IdentifierErrorc           B   s   e  Z d  Z RS(   s;   Raised when a schema name is beyond the max character limit(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   '   s   t   DisconnectionErrorc           B   s   e  Z d  Z RS(   sÙ   A disconnect is detected on a raw DB-API connection.

    This error is raised and consumed internally by a connection pool.  It can
    be raised by a ``PoolListener`` so that the host pool forces a disconnect.

    (   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   -   s   t   TimeoutErrorc           B   s   e  Z d  Z RS(   s@   Raised when a connection pool times out on getting a connection.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   9   s   t   InvalidRequestErrorc           B   s   e  Z d  Z RS(   sv   SQLAlchemy was asked to do something it can't do.

    This error generally corresponds to runtime state errors.

    (   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   =   s   t   ResourceClosedErrorc           B   s   e  Z d  Z RS(   sc   An operation was requested from a connection, cursor, or other
    object that's in a closed state.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   D   s   t   NoSuchColumnErrorc           B   s   e  Z d  Z RS(   s6   A nonexistent column is requested from a ``RowProxy``.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   H   s   t   NoReferenceErrorc           B   s   e  Z d  Z RS(   sD   Raised by ``ForeignKey`` to indicate a reference cannot be resolved.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   K   s   t   NoReferencedTableErrorc           B   s   e  Z d  Z RS(   sG   Raised by ``ForeignKey`` when the referred ``Table`` cannot be located.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   N   s   t   NoReferencedColumnErrorc           B   s   e  Z d  Z RS(   sH   Raised by ``ForeignKey`` when the referred ``Column`` cannot be located.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   Q   s   t   NoSuchTableErrorc           B   s   e  Z d  Z RS(   s7   Table does not exist or is not visible to a connection.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   T   s   t   UnboundExecutionErrorc           B   s   e  Z d  Z RS(   sA   SQL was attempted without a database connection to execute it on.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   X   s   t
   DBAPIErrorc           B   s5   e  Z d  Z e e d „ ƒ Z e d „ Z d „  Z RS(   s•  Raised when the execution of a database operation fails.

    ``DBAPIError`` wraps exceptions raised by the DB-API underlying the
    database operation.  Driver-specific implementations of the standard
    DB-API exception types are wrapped by matching sub-types of SQLAlchemy's
    ``DBAPIError`` when possible.  DB-API's ``Error`` type maps to
    ``DBAPIError`` in SQLAlchemy, otherwise the names are identical.  Note
    that there is no guarantee that different DB-API implementations will
    raise the same exception type for any given error condition.

    If the error-raising operation occured in the execution of a SQL
    statement, that statement and its parameters will be available on
    the exception object in the ``statement`` and ``params`` attributes.

    The wrapped exception object is available in the ``orig`` attribute.
    Its type and properties are DB-API implementation specific.

    c         C   s‡   t  | t t f ƒ o | Sn | d  j	 oI | i i t ƒ  } } | | j o" t | | t ƒ o | | }  qt n |  | | | | ƒ S(   N(	   t
   isinstancet   KeyboardInterruptt
   SystemExitt   Nonet	   __class__R   t   globalst
   issubclassR   (   t   clst	   statementt   paramst   origt   connection_invalidatedt   namet   glob(    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyt   instances   s    !c         C   s›   y t  | ƒ } Wn@ t t f j
 o
 ‚  n& t j
 o } d t  | ƒ } n Xt i |  d | i i | f ƒ | |  _ | |  _	 | |  _
 | |  _ d  S(   Ns.   Error in str() of DB-API-generated exception: s   (%s) %s(   t   strR   R   t	   ExceptionR    R   R   R   R    R!   R"   R#   (   R	   R    R!   R"   R#   t   textt   e(    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR      s    			c         C   sÉ   t  |  i t t f ƒ o t |  i ƒ d j oi t  |  i d t t t f ƒ oI d i t i |  ƒ t	 |  i
 ƒ t	 |  i d  ƒ d t |  i ƒ f ƒ Sn d i t i |  ƒ t	 |  i
 ƒ t	 |  i ƒ f ƒ S(   Ni
   i    t    i   s*   ... and a total of %i bound parameter sets(   R   R!   t   listt   tuplet   lent   dictt   joinR    t   __str__t   reprR    (   R	   (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR1      s    O(   R   R   R   t   classmethodt   FalseR&   R   R1   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR   _   s
   t   InterfaceErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API InterfaceError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR5      s   t   DatabaseErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API DatabaseError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR6   ¡   s   t	   DataErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API DataError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR7   ¥   s   t   OperationalErrorc           B   s   e  Z d  Z RS(   s    Wraps a DB-API OperationalError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR8   ©   s   t   IntegrityErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API IntegrityError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR9   ­   s   t   InternalErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API InternalError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR:   ±   s   t   ProgrammingErrorc           B   s   e  Z d  Z RS(   s    Wraps a DB-API ProgrammingError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR;   µ   s   t   NotSupportedErrorc           B   s   e  Z d  Z RS(   s!   Wraps a DB-API NotSupportedError.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR<   ¹   s   t   SADeprecationWarningc           B   s   e  Z d  Z RS(   s*   Issued once per usage of a deprecated API.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR=   ¿   s   t   SAPendingDeprecationWarningc           B   s   e  Z d  Z RS(   s*   Issued once per usage of a deprecated API.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR>   Ã   s   t	   SAWarningc           B   s   e  Z d  Z RS(   s   Issued at runtime.(   R   R   R   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pyR?   Ç   s   N(&   R   R(   R    R   R   R   R   R   t   ConcurrentModificationErrorR   t
   FlushErrorR   R   R   t   KeyErrorR   R   R   R   R   R   t   UnmappedColumnErrorR   t   SQLErrorR5   R6   R7   R8   R9   R:   R;   R<   t   DeprecationWarningR=   t   PendingDeprecationWarningR>   t   RuntimeWarningR?   (    (    (    sk   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/exc.pys   <module>   s>   
<