403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.128.153.112
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/__pycache__/exc.cpython-37.pyc
B

��4]�>�@sjdZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd!d"�d"e�ZGd#d$�d$ee�ZGd%d&�d&e�ZGd'd(�d(e�ZGd)d*�d*e�ZGd+d,�d,e�ZGd-d.�d.e�ZGd/d0�d0e�ZGd1d2�d2e�Zd3ZGd4d5�d5e�ZGd6d7�d7e�Z Gd8d9�d9e �Z!Gd:d;�d;e �Z"Gd<d=�d=e"�Z#Gd>d?�d?e"�Z$Gd@dA�dAe"�Z%GdBdC�dCe"�Z&GdDdE�dEe"�Z'GdFdG�dGe"�Z(GdHdI�dIe)�Z*GdJdK�dKe+�Z,GdLdM�dMe-�Z.d3S)Nz�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`.

�)�compatcsReZdZdZdZ�fdd�Zdd�Zejfdd�Z	d	d
�Z
dd�Zd
d�Z�Z
S)�SQLAlchemyErrorzGeneric error class.Ncs0|�dd�}|dk	r||_tt|�j||�dS)N�code)�popr�superr�__init__)�self�arg�kwr)�	__class__��A/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/exc.pyrszSQLAlchemyError.__init__cCs|js
dSd|jfSdS)N�z6(Background on this error at: http://sqlalche.me/e/%s))r)rrrr
�	_code_strszSQLAlchemyError._code_strcCsNt|j�dkr@|jd}|r4t|tj�r4t�|d�S|jdSn
t|j�SdS)Nr�zutf-8)�len�args�
isinstancerZbinary_typesZdecode_backslashreplace�str)r�
as_unicode�textrrr
�_message's
zSQLAlchemyError._messagecCs$|�|�}|jr d||��f}|S)Nz%s %s)rrr)rr�messagerrr
�_sql_messageCs
zSQLAlchemyError._sql_messagecCs|�tj�S)N)rr�py3k)rrrr
�__str__KszSQLAlchemyError.__str__cCs|jdd�S)NT)r)r)rrrr
�__unicode__NszSQLAlchemyError.__unicode__)�__name__�
__module__�__qualname__�__doc__rrrrrrrrr�
__classcell__rr)rr
rs	rc@seZdZdZdS)�
ArgumentErrorz�Raised when an invalid or conflicting function argument is supplied.

    This error generally corresponds to construction time state errors.

    N)rrrr rrrr
r"Rsr"cs eZdZdZ�fdd�Z�ZS)�ObjectNotExecutableErrorzqRaised when an object is passed to .execute() that can't be
    executed as SQL.

    .. versionadded:: 1.1

    cstt|��d|�dS)NzNot an executable object: %r)rr#r)r�target)rrr
rbs
z!ObjectNotExecutableError.__init__)rrrr rr!rr)rr
r#Zsr#c@seZdZdZdS)�NoSuchModuleErrorzpRaised when a dynamically-loaded module (usually a database dialect)
    of a particular name cannot be located.N)rrrr rrrr
r%hsr%c@seZdZdZdS)�NoForeignKeysErrorzURaised when no foreign keys can be located between two selectables
    during a join.N)rrrr rrrr
r&msr&c@seZdZdZdS)�AmbiguousForeignKeysErrorzhRaised when more than one foreign key matching can be located
    between two selectables during a join.N)rrrr rrrr
r'rsr'c@s"eZdZdZddd�Zdd�ZdS)�CircularDependencyErrora�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`.

    NcCsJ|dkr&|dd�dd�|D��7}n|}tj|||d�||_||_dS)Nz (%s)z, css|]}t|�VqdS)N)�repr)�.0�srrr
�	<genexpr>�sz3CircularDependencyError.__init__.<locals>.<genexpr>)r)�joinrr�cycles�edges)rrr.r/�msgrrrr
r�sz CircularDependencyError.__init__cCs|jd|j|j|jdffS)Nr)rr.r/r)rrrr
�
__reduce__�sz"CircularDependencyError.__reduce__)NN)rrrr rr1rrrr
r(ws
	r(c@seZdZdZdS)�CompileErrorz2Raised when an error occurs during SQL compilationN)rrrr rrrr
r2�sr2cs$eZdZdZdZ�fdd�Z�ZS)�UnsupportedCompilationErrorz�Raised when an operation is not supported by the given compiler.

    .. seealso::

        :ref:`faq_sql_expression_string`

        :ref:`error_l7de`
    Zl7decstt|��d||f�dS)Nz+Compiler %r can't render element of type %s)rr3r)r�compilerZelement_type)rrr
r�s
z$UnsupportedCompilationError.__init__)rrrr rrr!rr)rr
r3�sr3c@seZdZdZdS)�IdentifierErrorz;Raised when a schema name is beyond the max character limitN)rrrr rrrr
r5�sr5c@seZdZdZdZdS)�DisconnectionErrora�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.

    FN)rrrr �invalidate_poolrrrr
r6�s	r6c@seZdZdZdZdS)�InvalidatePoolErrora�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

    TN)rrrr r7rrrr
r8�s
r8c@seZdZdZdS)�TimeoutErrorz@Raised when a connection pool times out on getting a connection.N)rrrr rrrr
r9�sr9c@seZdZdZdS)�InvalidRequestErrorzvSQLAlchemy was asked to do something it can't do.

    This error generally corresponds to runtime state errors.

    N)rrrr rrrr
r:�sr:c@seZdZdZdS)�NoInspectionAvailablezaA subject passed to :func:`sqlalchemy.inspection.inspect` produced
    no context for inspection.N)rrrr rrrr
r;�sr;c@seZdZdZdS)�ResourceClosedErrorzcAn operation was requested from a connection, cursor, or other
    object that's in a closed state.N)rrrr rrrr
r<�sr<c@seZdZdZdS)�NoSuchColumnErrorz6A nonexistent column is requested from a ``RowProxy``.N)rrrr rrrr
r=�sr=c@seZdZdZdS)�NoReferenceErrorzDRaised by ``ForeignKey`` to indicate a reference cannot be resolved.N)rrrr rrrr
r>�sr>c@s eZdZdZdd�Zdd�ZdS)�NoReferencedTableErrorzQRaised by ``ForeignKey`` when the referred ``Table`` cannot be
    located.

    cCst�||�||_dS)N)r>r�
table_name)rr�tnamerrr
r�szNoReferencedTableError.__init__cCs|j|jd|jffS)Nr)rrr@)rrrr
r1�sz!NoReferencedTableError.__reduce__N)rrrr rr1rrrr
r?�sr?c@s eZdZdZdd�Zdd�ZdS)�NoReferencedColumnErrorzRRaised by ``ForeignKey`` when the referred ``Column`` cannot be
    located.

    cCst�||�||_||_dS)N)r>rr@�column_name)rrrAZcnamerrr
rsz NoReferencedColumnError.__init__cCs|j|jd|j|jffS)Nr)rrr@rC)rrrr
r1sz"NoReferencedColumnError.__reduce__N)rrrr rr1rrrr
rB�srBc@seZdZdZdS)�NoSuchTableErrorz7Table does not exist or is not visible to a connection.N)rrrr rrrr
rDsrDc@seZdZdZdS)�UnreflectableTableErrorzUTable exists but can't be reflected for some reason.

    .. versionadded:: 1.2

    N)rrrr rrrr
rEsrEc@seZdZdZdS)�UnboundExecutionErrorzASQL was attempted without a database connection to execute it on.N)rrrr rrrr
rFsrFc@seZdZdZdS)�
DontWrapMixina8A 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!")

    N)rrrr rrrr
rGsrGNc@s>eZdZdZdZdZdZddd�Zdd�Zdd�Z	d	d
�Z
dS)�StatementErroravAn 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.

    NcCs,tj|||d�||_||_||_g|_dS)N)r)rr�	statement�params�orig�detail)rrrIrJrKrrrr
rOs
zStatementError.__init__cCs|j�|�dS)N)rL�append)rr0rrr
�
add_detailVszStatementError.add_detailcCs|j|jd|j|j|jffS)Nr)rrrIrJrK)rrrr
r1YszStatementError.__reduce__cCs�ddlm}|j|d�g}|jrr|s<tjs<dt�|j�}n
d|j}|�|�|jrr|�	|jd�}|�d|�|�
�}|r�|�|�d�dd	�|jD�|�S)
Nr)�util)rz	[SQL: %s]�
z[parameters: %r]�
cSsg|]}d|�qS)z(%s)r)r*Zdetrrr
�
<listcomp>qsz/StatementError._sql_message.<locals>.<listcomp>)
Zsqlalchemy.sqlrOrrIrrZsafe_bytestringrMrJZ_repr_paramsrr-rL)rrrO�detailsZstmt_detailZparams_reprZcode_strrrr
r_s



zStatementError._sql_message)N)rrrr rIrJrKrrNr1rrrrr
rH9s
rHc@s4eZdZdZdZeddd��Zdd�Zdd	d
�ZdS)
�
DBAPIErrora	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.

    ZdbapiFNc
Cs�t|t�rt|t�rt|t�r"|S|dk	r�t|t�rd|rdtd|jj|jj|j	df||||j
d�St||�s�|r�td|jj|jj|f|||�St�}xH|jjD]<}|j}	|r�|j
�|	|	�}	|	|kr�t||	t�r�||	}Pq�W||||||j
d�S)Nz
(%s.%s) %sr)r)r�
BaseException�	ExceptionrGrrHrrrrr�globals�__mro__Zdbapi_exception_translation_map�get�
issubclassrT)
�clsrIrJrKZdbapi_base_err�connection_invalidatedZdialect�globZsuper_�namerrr
�instance�sD


zDBAPIError.instancecCs|j|j|j|j|jffS)N)rrIrJrKr\)rrrr
r1�s
zDBAPIError.__reduce__c
Csnyt|�}Wn.tk
r:}zdt|�}Wdd}~XYnXtj|d|jj|jj|f||||d�||_dS)Nz.Error in str() of DB-API-generated exception: z
(%s.%s) %s)r)rrVrHrrrrr\)rrIrJrKr\rr�errr
r�szDBAPIError.__init__)FN)FN)	rrrr r�classmethodr_r1rrrrr
rTts5rTc@seZdZdZdZdS)�InterfaceErrorzWraps a DB-API InterfaceError.Zrvf5N)rrrr rrrrr
rb�srbc@seZdZdZdZdS)�
DatabaseErrorzWraps a DB-API DatabaseError.Z4xp6N)rrrr rrrrr
rc�srcc@seZdZdZdZdS)�	DataErrorzWraps a DB-API DataError.Z9h9hN)rrrr rrrrr
rd�srdc@seZdZdZdZdS)�OperationalErrorz Wraps a DB-API OperationalError.Ze3q8N)rrrr rrrrr
re�srec@seZdZdZdZdS)�IntegrityErrorzWraps a DB-API IntegrityError.ZgkpjN)rrrr rrrrr
rfsrfc@seZdZdZdZdS)�
InternalErrorzWraps a DB-API InternalError.Z2j85N)rrrr rrrrr
rgsrgc@seZdZdZdZdS)�ProgrammingErrorz Wraps a DB-API ProgrammingError.Zf405N)rrrr rrrrr
rhsrhc@seZdZdZdZdS)�NotSupportedErrorz!Wraps a DB-API NotSupportedError.Ztw8gN)rrrr rrrrr
risric@seZdZdZdS)�SADeprecationWarningz*Issued once per usage of a deprecated API.N)rrrr rrrr
rjsrjc@seZdZdZdS)�SAPendingDeprecationWarningz*Issued once per usage of a deprecated API.N)rrrr rrrr
rksrkc@seZdZdZdS)�	SAWarningzIssued at runtime.N)rrrr rrrr
rl#srl)/r rOrrVrr"r#r%r&r'r(r2r3r5r6r8r9r:r;r<�KeyErrorr=r>r?rBrDrErF�objectrGZUnmappedColumnErrorrHrTrbrcrdrerfrgrhri�DeprecationWarningrj�PendingDeprecationWarningrk�RuntimeWarningrlrrrr
�<module>sN?;t	

Youez - 2016 - github.com/yon3zu
LinuXploit