ó
4Nc           @   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__(    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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  j |  |  | |  _ | |  _ d  S(   Ns   : cycles: %r all edges: %r(   R    t   __init__t   cyclest   edges(   t   selft   messageR   R   (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR      s    	(   R   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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  r | S| d  k	 rj | j j t   } } | | k rj t | | t  rj | | }  qj n  |  | | | |  S(   N(	   t
   isinstancet   KeyboardInterruptt
   SystemExitt   Nonet	   __class__R   t   globalst
   issubclassR   (   t   clst	   statementt   paramst   origt   connection_invalidatedt   namet   glob(    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyt   instances   s    c         C   s   y t  |  } Wn< t t f k
 r,   n# t k
 rN } d t  |  } n Xt j |  d | j j | 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(    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR      s    			c      	   C   sÂ   t  |  j t t f  r t |  j  d k r t  |  j d t t t f  r d j t j |   t	 |  j
  t	 |  j d   d t |  j  f  Sd j t j |   t	 |  j
  t	 |  j  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	   (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR1      s    L(   R   R   R   t   classmethodt   FalseR&   R   R1   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR   _   s
   t   InterfaceErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API InterfaceError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR5      s   t   DatabaseErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API DatabaseError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR6   Ą   s   t	   DataErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API DataError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR7   Ĩ   s   t   OperationalErrorc           B   s   e  Z d  Z RS(   s    Wraps a DB-API OperationalError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR8   Đ   s   t   IntegrityErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API IntegrityError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR9   ­   s   t   InternalErrorc           B   s   e  Z d  Z RS(   s   Wraps a DB-API InternalError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR:   ą   s   t   ProgrammingErrorc           B   s   e  Z d  Z RS(   s    Wraps a DB-API ProgrammingError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR;   ĩ   s   t   NotSupportedErrorc           B   s   e  Z d  Z RS(   s!   Wraps a DB-API NotSupportedError.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyR>   Ã   s   t	   SAWarningc           B   s   e  Z d  Z RS(   s   Issued at runtime.(   R   R   R   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.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?   (    (    (    sr   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/SQLAlchemy-0.6.8-py2.6.egg/sqlalchemy/exc.pyt   <module>   s>   
<