HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyc
�
���ec@sFdZddlmZddlmZdbZdefd��YZdeefd��YZ	de	fd	��YZ
d
e
fd��YZde
fd
��YZde
fd��YZ
de
fd��YZde	fd��YZde	fd��YZdefd��YZde	fd��YZde	fd��YZdefd��YZde	fd��YZd e	fd!��YZd"efd#��YZd$efd%��YZd&efd'��YZd(eefd)��YZd*efd+��YZd,efd-��YZd.efd/��YZd0efd1��YZd2efd3��YZ d4efd5��YZ!d6efd7��YZ"d8efd9��YZ#d:efd;��YZ$d<efd=��YZ%d>efd?��YZ&d@e	fdA��YZ'dBe'fdC��YZ(dDe(fdE��YZ)dFe(fdG��YZ*dHe*fdI��YZ+dJe*fdK��YZ,dLe*fdM��YZ-dNe*fdO��YZ.dPe*fdQ��YZ/dRe*fdS��YZ0dTee1fdU��YZ2dVe2fdW��YZ3dXe3fdY��YZ4dZe3fd[��YZ5d\e5fd]��YZ6d^e7fd_��YZ8d`ee9fda��YZ:dbS(cs�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(t
_preloaded(tcompattHasDescriptionCodecBs/eZdZdZd�Zd�Zd�ZRS(sDhelper which adds 'code' as an attribute and '_code_str' as a methodcOsG|jdd�}|dk	r*||_ntt|�j||�dS(Ntcode(tpoptNoneRtsuperRt__init__(tselftargtkwR((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRscCs"|js
dSdt|jfSdS(Nts:(Background on this error at: https://sqlalche.me/e/%s/%s)(Rt_version_token(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt	_code_str!s
	cCs;tt|�j�}|jr7d||j�f}n|S(Ns%s %s(RRt__str__RR
(Rtmessage((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR.s	N(t__name__t
__module__t__doc__RRRR
R(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRs
		
tSQLAlchemyErrorcBs8eZdZejd�Zd�Zd�Zd�ZRS(sGeneric error class.cCs�t|j�dkr�|jd}|rOt|tj�rOtj|d�}n.tjs_|rnt|�}ntj|�}|St|j�SdS(Niisutf-8(	tlentargst
isinstanceRtbinary_typestdecode_backslashreplacetpy3ktstrt	text_type(Rt
as_unicodettext((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt_message8s
cCs5|j|�}|jr1d||j�f}n|S(Ns%s %s(RRR
(RRR((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt_sql_message\s	cCs|jtj�S(N(RRR(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRdscCs|jdt�S(NR(RtTrue(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt__unicode__gs(	RRRRRRRRR!(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR5s
$		t
ArgumentErrorcBseZdZRS(s�Raised when an invalid or conflicting function argument is supplied.

    This error generally corresponds to construction time state errors.

    (RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR"kstObjectNotExecutableErrorcBs eZdZd�Zd�ZRS(sqRaised when an object is passed to .execute() that can't be
    executed as SQL.

    .. versionadded:: 1.1

    cCs'tt|�jd|�||_dS(NsNot an executable object: %r(RR#Rttarget(RR$((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR{scCs|j|jffS(N(t	__class__R$(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt
__reduce__�s(RRRRR&(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR#ss	tNoSuchModuleErrorcBseZdZRS(spRaised when a dynamically-loaded module (usually a database dialect)
    of a particular name cannot be located.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR'�stNoForeignKeysErrorcBseZdZRS(sURaised when no foreign keys can be located between two selectables
    during a join.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR(�stAmbiguousForeignKeysErrorcBseZdZRS(shRaised when more than one foreign key matching can be located
    between two selectables during a join.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR)�stCircularDependencyErrorcBs&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:`_schema.MetaData.sorted_tables` operation, two
      :class:`_schema.ForeignKey`
      or :class:`_schema.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((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pys	<genexpr>�sR(RtjoinRRtcyclestedges(RRR/R0tmsgR((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR�s$	cCsH|jd|j|j|jdf|jdk	rAi|jd6nifS(NiR(R%RR/R0RR(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR&�sN(RRRRRR&(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR*�s	tCompileErrorcBseZdZRS(s2Raised when an error occurs during SQL compilation(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR2�stUnsupportedCompilationErrorcBs)eZdZdZdd�Zd�ZRS(s�Raised when an operation is not supported by the given compiler.

    .. seealso::

        :ref:`faq_sql_expression_string`

        :ref:`error_l7de`
    tl7decCsRtt|�jd|||r(d|ndf�||_||_||_dS(Ns-Compiler %r can't render element of type %s%ss: %sR(RR3Rtcompilertelement_typeR(RR5R6R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR�s!		cCs|j|j|j|jffS(N(R%R5R6R(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR&�sN(RRRRRRR&(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR3�s	tIdentifierErrorcBseZdZRS(s;Raised when a schema name is beyond the max character limit(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR7�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:`_events.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(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR8�s
tInvalidatePoolErrorcBseZdZeZRS(s�Raised when the connection pool should invalidate all stale connections.

    A subclass of :class:`_exc.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:`_exc.DisconnectionError`, allowing three attempts to reconnect
    before giving up.

    .. versionadded:: 1.2

    (RRRR R:(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR;�s
tTimeoutErrorcBseZdZRS(s@Raised when a connection pool times out on getting a connection.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR<�stInvalidRequestErrorcBseZdZRS(svSQLAlchemy was asked to do something it can't do.

    This error generally corresponds to runtime state errors.

    (RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR=�stNoInspectionAvailablecBseZdZRS(saA subject passed to :func:`sqlalchemy.inspection.inspect` produced
    no context for inspection.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR>stPendingRollbackErrorcBseZdZRS(slA transaction has failed and needs to be rolled back before
    continuing.

    .. versionadded:: 1.4

    (RRR(((s?/opt/alt/python27/lib/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(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR@stNoSuchColumnErrorcBseZdZRS(s1A nonexistent column is requested from a ``Row``.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRAst
NoResultFoundcBseZdZRS(s�A database result was required but none was found.


    .. versionchanged:: 1.4  This exception is now part of the
       ``sqlalchemy.exc`` module in Core, moved from the ORM.  The symbol
       remains importable from ``sqlalchemy.orm.exc``.


    (RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRBs	tMultipleResultsFoundcBseZdZRS(sA single database result was required but more than one were found.

    .. versionchanged:: 1.4  This exception is now part of the
       ``sqlalchemy.exc`` module in Core, moved from the ORM.  The symbol
       remains importable from ``sqlalchemy.orm.exc``.


    (RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRC)stNoReferenceErrorcBseZdZRS(sDRaised by ``ForeignKey`` to indicate a reference cannot be resolved.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRD4st
AwaitRequiredcBseZdZdZRS(sjError raised by the async greenlet spawn if no async operation
    was awaited when it required one.

    txd1r(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRE8stMissingGreenletcBseZdZdZRS(skError raised by the async greenlet await\_ if called while not inside
    the greenlet spawn context.

    txd2s(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRGAstNoReferencedTableErrorcBs eZdZd�Zd�ZRS(sQRaised by ``ForeignKey`` when the referred ``Table`` cannot be
    located.

    cCstj||�||_dS(N(RDRt
table_name(RRttname((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRPscCs|j|jd|jffS(Ni(R%RRJ(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR&Ts(RRRRR&(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRIJs	tNoReferencedColumnErrorcBs eZdZd�Zd�ZRS(sRRaised by ``ForeignKey`` when the referred ``Column`` cannot be
    located.

    cCs&tj||�||_||_dS(N(RDRRJtcolumn_name(RRRKtcname((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR^s	cCs#|j|jd|j|jffS(Ni(R%RRJRM(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR&cs(RRRRR&(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRLXs	tNoSuchTableErrorcBseZdZRS(s7Table does not exist or is not visible to a connection.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyROjstUnreflectableTableErrorcBseZdZRS(sUTable exists but can't be reflected for some reason.

    .. versionadded:: 1.2

    (RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRPnstUnboundExecutionErrorcBseZdZRS(sASQL was attempted without a database connection to execute it on.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRQvst
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(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRRzstStatementErrorcBsbeZdZdZdZdZdZeddd�Z	d�Z
d�Zej
d�d��ZRS(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.

    cCsPtj||d|�||_||_||_||_||_g|_dS(NR(RRt	statementtparamstorigtismultithide_parameterstdetail(RRRTRURVRXRRW((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR�s
					cCs|jj|�dS(N(RYtappend(RR1((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt
add_detail�scCsQ|j|jd|j|j|j|j|jjd�|jfi|j	d6fS(NiRRY(
R%RRTRURVRXt__dict__tgetRWRY(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR&�s
	ssqlalchemy.sql.utilcCstjj}|jd|�g}|jr�|rTtjrTdtj|j�}n
d|j}|j|�|j	r�|j
r�|jd�q�|j|j	dd|j�}|jd|�q�n|j
�}|r�|j|�ndjg|jD]}d|^q�|�S(	NRs	[SQL: %s]s3[SQL parameters hidden due to hide_parameters=True]i
RWs[parameters: %r]s
s(%s)(Rt	preloadedtsql_utilRRTRRtsafe_bytestringRZRURXt_repr_paramsRWR
R.RY(RRtutiltdetailststmt_detailtparams_reprtcode_strtdet((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR�s&		

		
N(RRRRRTRURVRWR9RR[R&Rtpreload_moduleR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRS�s
		t
DBAPIErrorcBsMeZdZdZeeeddd��Zd�Zeeddd�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	Cs�t|t�rt|t�s.t|t�r2|S|dk	r`t|t�r�|r�td|jj|jj	|j
df|||d|d|jd|�St||�r�|r�td|jj|jj	|f|||d|d|�St�}	xk|jj
D]Z}
|
j	}|r,|jj||�}n||	kr�t|	|t�r�|	|}Pq�q�Wn||||d|d|d|jd|�S(Ns
(%s.%s) %siRXRRWtconnection_invalidated(Rt
BaseExceptiont	ExceptionRRRRRSR%RRRRtglobalst__mro__tdbapi_exception_translation_mapR]t
issubclassRi(tclsRTRURVtdbapi_base_errRXRktdialectRWtglobtsuper_tname((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pytinstancesX								
	cCsM|j|j|j|j|j|j|jjd�|jfi|j	d6fS(NRRY(
R%RTRURVRXRkR\R]RWRY(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR&Ks	c
Cs�yt|�}Wn#tk
r5}	dt|	�}nXtj|d|jj|jj|f||||d|d|�||_dS(Ns.Error in str() of DB-API-generated exception: s
(%s.%s) %sRRW(RRmRSRR%RRRk(
RRTRURVRXRkRRWRte((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRZs
N(
RRRRtclassmethodR9RRxR&R(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyRi�s?	tInterfaceErrorcBseZdZdZRS(sWraps a DB-API InterfaceError.trvf5(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR{vst
DatabaseErrorcBseZdZdZRS(sWraps a DB-API DatabaseError.t4xp6(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR}|st	DataErrorcBseZdZdZRS(sWraps a DB-API DataError.t9h9h(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR�stOperationalErrorcBseZdZdZRS(s Wraps a DB-API OperationalError.te3q8(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stIntegrityErrorcBseZdZdZRS(sWraps a DB-API IntegrityError.tgkpj(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��st
InternalErrorcBseZdZdZRS(sWraps a DB-API InternalError.t2j85(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stProgrammingErrorcBseZdZdZRS(s Wraps a DB-API ProgrammingError.tf405(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stNotSupportedErrorcBseZdZdZRS(s!Wraps a DB-API NotSupportedError.ttw8g(RRRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stSADeprecationWarningcBseZdZdZRS(s$Issued for usage of deprecated APIs.N(RRRRtdeprecated_since(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stBase20DeprecationWarningcBseZdZdZd�ZRS(s�Issued for usage of APIs specifically deprecated or legacy in
    SQLAlchemy 2.0.

    .. seealso::

        :ref:`error_b8d9`.

        :ref:`deprecation_20_mode`

    s1.4cCstt|�j�dS(Ns> (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)(RR�R(R((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR�s(RRRR�R(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��s
tLegacyAPIWarningcBseZdZRS(sEindicates an API that is in 'legacy' status, a long term deprecation.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stRemovedIn20WarningcBseZdZRS(s>indicates an API that will be fully removed in SQLAlchemy 2.0.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stMovedIn20WarningcBseZdZRS(sASubtype of RemovedIn20Warning to indicate an API that moved only.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��stSAPendingDeprecationWarningcBseZdZdZRS(s}A similar warning as :class:`_exc.SADeprecationWarning`, this warning
    is not used in modern versions of SQLAlchemy.

    N(RRRRR�(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��st	SAWarningcBseZdZRS(sIssued at runtime.(RRR(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyR��sN(;RRbRRRRtobjectRRmRR"R#R'R(R)R*R2R3R7R8R;R<R=R>R?R@tKeyErrorRARBRCRDRERGRIRLRORPRQRRRSRiR{R}RR�R�R�R�R�tDeprecationWarningR�R�R�R�R�tPendingDeprecationWarningR�tRuntimeWarningR�(((s?/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/exc.pyt<module>sd6$			Y�