%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/227033/root/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/
Upload File :
Create Path :
Current File : //proc/227033/root/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyc

�
��4]c@sQdZddlmZdefd��YZdefd��YZdefd��YZd	efd
��YZdefd��YZd
efd��YZ	defd��YZ
defd��YZdefd��YZdefd��YZ
defd��YZdefd��YZdefd��YZdefd��YZdefd ��YZd!efd"��YZd#eefd$��YZd%efd&��YZd'efd(��YZd)efd*��YZd+efd,��YZd-efd.��YZd/efd0��YZd1efd2��YZdMZd3efd4��YZ d5e fd6��YZ!d7e!fd8��YZ"d9e!fd:��YZ#d;e#fd<��YZ$d=e#fd>��YZ%d?e#fd@��YZ&dAe#fdB��YZ'dCe#fdD��YZ(dEe#fdF��YZ)dGe*fdH��YZ+dIe,fdJ��YZ-dKe.fdL��YZ/dMS(Ns�Exceptions used with SQLAlchemy.

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

i(tcompattSQLAlchemyErrorcBsPeZdZdZd�Zd�Zejd�Z	d�Z
d�Zd�ZRS(sGeneric error class.cOsG|jdd�}|dk	r*||_ntt|�j||�dS(Ntcode(tpoptNoneRtsuperRt__init__(tselftargtkwR((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRscCs|js
dSd|jfSdS(Nts6(Background on this error at: http://sqlalche.me/e/%s)(R(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt	_code_strs	cCsit|j�dkrX|jd}|rJt|tj�rJtj|d�S|jdSn
t|j�SdS(Niisutf-8(tlentargst
isinstanceRtbinary_typestdecode_backslashreplacetstr(Rt
as_unicodettext((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt_message's
cCs5|j|�}|jr1d||j�f}n|S(Ns%s %s(RRR(RRtmessage((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt_sql_messageCs	cCs|jtj�S(N(RRtpy3k(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt__str__KscCs|jdt�S(NR(RtTrue(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt__unicode__NsN(
t__name__t
__module__t__doc__RRRRRRRRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRs					t
ArgumentErrorcBseZdZRS(s�Raised when an invalid or conflicting function argument is supplied.

    This error generally corresponds to construction time state errors.

    (RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRRstObjectNotExecutableErrorcBseZdZd�ZRS(sqRaised when an object is passed to .execute() that can't be
    executed as SQL.

    .. versionadded:: 1.1

    cCstt|�jd|�dS(NsNot an executable object: %r(RRR(Rttarget((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRbs(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRZstNoSuchModuleErrorcBseZdZRS(spRaised when a dynamically-loaded module (usually a database dialect)
    of a particular name cannot be located.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR!hstNoForeignKeysErrorcBseZdZRS(sURaised when no foreign keys can be located between two selectables
    during a join.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR"mstAmbiguousForeignKeysErrorcBseZdZRS(shRaised when more than one foreign key matching can be located
    between two selectables during a join.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR#rstCircularDependencyErrorcBs&eZdZddd�Zd�ZRS(s�Raised by topological sorts when a circular dependency is detected.

    There are two scenarios where this error occurs:

    * In a Session flush operation, if two objects are mutually dependent
      on each other, they can not be inserted or deleted via INSERT or
      DELETE statements alone; an UPDATE will be needed to post-associate
      or pre-deassociate one of the foreign key constrained values.
      The ``post_update`` flag described at :ref:`post_update` can resolve
      this cycle.
    * In a :attr:`.MetaData.sorted_tables` operation, two :class:`.ForeignKey`
      or :class:`.ForeignKeyConstraint` objects mutually refer to each
      other.  Apply the ``use_alter=True`` flag to one or both,
      see :ref:`use_alter`.

    cCsb|dkr0|ddjd�|D��7}n|}tj||d|�||_||_dS(Ns (%s)s, css|]}t|�VqdS(N(trepr(t.0ts((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pys	<genexpr>�sR(RtjoinRRtcyclestedges(RRR)R*tmsgR((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR�s$	cCs&|jd|j|j|jdffS(Ni(t	__class__RR)R*R
(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt
__reduce__�sN(RRRRRR-(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR$ws	tCompileErrorcBseZdZRS(s2Raised when an error occurs during SQL compilation(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR.�stUnsupportedCompilationErrorcBseZdZdZd�ZRS(s�Raised when an operation is not supported by the given compiler.

    .. seealso::

        :ref:`faq_sql_expression_string`

        :ref:`error_l7de`
    tl7decCs$tt|�jd||f�dS(Ns+Compiler %r can't render element of type %s(RR/R(Rtcompilertelement_type((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR�s(RRRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR/�stIdentifierErrorcBseZdZRS(s;Raised when a schema name is beyond the max character limit(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR3�stDisconnectionErrorcBseZdZeZRS(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 the :meth:`.PoolEvents.checkout` event so that the host pool
    forces a retry; the exception will be caught three times in a row before
    the pool gives up and raises :class:`~sqlalchemy.exc.InvalidRequestError`
    regarding the connection attempt.

    (RRRtFalsetinvalidate_pool(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR4�s	tInvalidatePoolErrorcBseZdZeZRS(s�Raised when the connection pool should invalidate all stale connections.

    A subclass of :class:`.DisconnectionError` that indicates that the
    disconnect situation encountered on the connection probably means the
    entire pool should be invalidated, as the database has been restarted.

    This exception will be handled otherwise the same way as
    :class:`.DisconnectionError`, allowing three attempts to reconnect
    before giving up.

    .. versionadded:: 1.2

    (RRRRR6(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR7�s
tTimeoutErrorcBseZdZRS(s@Raised when a connection pool times out on getting a connection.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR8�stInvalidRequestErrorcBseZdZRS(svSQLAlchemy was asked to do something it can't do.

    This error generally corresponds to runtime state errors.

    (RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR9�stNoInspectionAvailablecBseZdZRS(saA subject passed to :func:`sqlalchemy.inspection.inspect` produced
    no context for inspection.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR:�stResourceClosedErrorcBseZdZRS(scAn operation was requested from a connection, cursor, or other
    object that's in a closed state.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR;�stNoSuchColumnErrorcBseZdZRS(s6A nonexistent column is requested from a ``RowProxy``.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR<�stNoReferenceErrorcBseZdZRS(sDRaised by ``ForeignKey`` to indicate a reference cannot be resolved.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR=�stNoReferencedTableErrorcBs eZdZd�Zd�ZRS(sQRaised by ``ForeignKey`` when the referred ``Table`` cannot be
    located.

    cCstj||�||_dS(N(R=Rt
table_name(RRttname((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR�scCs|j|jd|jffS(Ni(R,R
R?(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR-�s(RRRRR-(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR>�s	tNoReferencedColumnErrorcBs eZdZd�Zd�ZRS(sRRaised by ``ForeignKey`` when the referred ``Column`` cannot be
    located.

    cCs&tj||�||_||_dS(N(R=RR?tcolumn_name(RRR@tcname((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRs	cCs#|j|jd|j|jffS(Ni(R,R
R?RB(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR-s(RRRRR-(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRA�s	tNoSuchTableErrorcBseZdZRS(s7Table does not exist or is not visible to a connection.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRDstUnreflectableTableErrorcBseZdZRS(sUTable exists but can't be reflected for some reason.

    .. versionadded:: 1.2

    (RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyREstUnboundExecutionErrorcBseZdZRS(sASQL was attempted without a database connection to execute it on.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRFst
DontWrapMixincBseZdZRS(s8A mixin class which, when applied to a user-defined Exception class,
    will not be wrapped inside of :exc:`.StatementError` if the error is
    emitted within the process of executing a statement.

    E.g.::

        from sqlalchemy.exc import DontWrapMixin

        class MyCustomException(Exception, DontWrapMixin):
            pass

        class MySpecialType(TypeDecorator):
            impl = String

            def process_bind_param(self, value, dialect):
                if value == 'invalid':
                    raise MyCustomException("invalid!")

    (RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRGstStatementErrorcBsGeZdZdZdZdZdd�Zd�Zd�Z	d�Z
RS(svAn error occurred during execution of a SQL statement.

    :class:`StatementError` wraps the exception raised
    during execution, and features :attr:`.statement`
    and :attr:`.params` attributes which supply context regarding
    the specifics of the statement which had an issue.

    The wrapped exception object is available in
    the :attr:`.orig` attribute.

    cCs>tj||d|�||_||_||_g|_dS(NR(RRt	statementtparamstorigtdetail(RRRIRJRKR((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyROs
			cCs|jj|�dS(N(RLtappend(RR+((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt
add_detailVscCs)|j|jd|j|j|jffS(Ni(R,R
RIRJRK(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR-YscCs�ddlm}|jd|�g}|jr�|rXtjrXdtj|j�}n
d|j}|j|�|jr�|j	|jd�}|jd|�q�n|j
�}|r�|j|�ndjg|jD]}d|^q�|�S(	Ni����(tutilRs	[SQL: %s]i
s[parameters: %r]s
s(%s)(
tsqlalchemy.sqlRORRIRRtsafe_bytestringRMRJt_repr_paramsRR(RL(RRROtdetailststmt_detailtparams_reprtcode_strtdet((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR_s		

	N(RRRRRIRJRKRRNR-R(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRH9s		t
DBAPIErrorcBsAeZdZdZeedd��Zd�Zedd�Z	RS(s	Raised when the execution of a database operation fails.

    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
    :class:`DBAPIError` when possible.  DB-API's ``Error`` type maps to
    :class:`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.

    :class:`DBAPIError` features :attr:`~.StatementError.statement`
    and :attr:`~.StatementError.params` attributes which supply context
    regarding the specifics of the statement which had an issue, for the
    typical case when the error was raised within the context of
    emitting a SQL statement.

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

    tdbapic
Csdt|t�rt|t�s.t|t�r2|S|dk	rHt|t�r�|r�td|jj|jj	|j
df|||d|j�St||�r�|r�td|jj|jj	|f|||�St�}xk|jj
D]Z}|j	}	|r|jj|	|	�}	n|	|kr�t||	t�r�||	}Pq�q�Wn|||||d|j�S(Ns
(%s.%s) %siR(Rt
BaseExceptiont	ExceptionRGRRRHR,RRR
Rtglobalst__mro__tdbapi_exception_translation_maptgett
issubclassRX(
tclsRIRJRKtdbapi_base_errtconnection_invalidatedtdialecttglobtsuper_tname((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pytinstance�sD
		
					
cCs%|j|j|j|j|jffS(N(R,RIRJRKRc(R((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR-�s
cCs{yt|�}Wn#tk
r5}dt|�}nXtj|d|jj|jj|f|||d|�||_dS(Ns.Error in str() of DB-API-generated exception: s
(%s.%s) %sR(RR[RHRR,RRRc(RRIRJRKRcRRte((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR�sN(
RRRRtclassmethodR5RRhR-R(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRXts5	tInterfaceErrorcBseZdZdZRS(sWraps a DB-API InterfaceError.trvf5(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRk�st
DatabaseErrorcBseZdZdZRS(sWraps a DB-API DatabaseError.t4xp6(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRm�st	DataErrorcBseZdZdZRS(sWraps a DB-API DataError.t9h9h(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRo�stOperationalErrorcBseZdZdZRS(s Wraps a DB-API OperationalError.te3q8(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRq�stIntegrityErrorcBseZdZdZRS(sWraps a DB-API IntegrityError.tgkpj(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRsst
InternalErrorcBseZdZdZRS(sWraps a DB-API InternalError.t2j85(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRustProgrammingErrorcBseZdZdZRS(s Wraps a DB-API ProgrammingError.tf405(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRwstNotSupportedErrorcBseZdZdZRS(s!Wraps a DB-API NotSupportedError.ttw8g(RRRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyRystSADeprecationWarningcBseZdZRS(s*Issued once per usage of a deprecated API.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR{stSAPendingDeprecationWarningcBseZdZRS(s*Issued once per usage of a deprecated API.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR|st	SAWarningcBseZdZRS(sIssued at runtime.(RRR(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyR}#sN(0RRORR[RRRR!R"R#R$R.R/R3R4R7R8R9R:R;tKeyErrorR<R=R>RARDRERFtobjectRGRtUnmappedColumnErrorRHRXRkRmRoRqRsRuRwRytDeprecationWarningR{tPendingDeprecationWarningR|tRuntimeWarningR}(((sA/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/exc.pyt<module>sN?;t	

Zerion Mini Shell 1.0