Ë
    Þš§j›  ã                   ó:  — d dl mZ ddlmZ  G d„ de«      Z G d„ de«      Z G d„ d	e«      Z G d
„ de«      Z G d„ de«      Z	 G d„ de«      Z
 G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de
«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d „ d!e«      Z G d"„ d#e«      Z G d$„ d%e«      Z G d&„ d'ee«      Z G d(„ d)ee«      Z G d*„ d+ee«      Z G d,„ d-ee«      Z G d.„ d/ee«      Z G d0„ d1ee «      Z! G d2„ d3ee"«      Z#y4)5é    )Úcasté   )ÚErrorClassesReaderc            	       óŽ   — e Zd ZdZ	 	 	 ddedz  dedz  deeef   dz  ddfd„Zdedz  fd„Zdeeef   dz  fd	„Zdd
„Z	defd„Z
y)ÚPySparkExceptionz:Base Exception for handling errors generated from PySpark.NÚmessageÚerror_classÚmessage_parametersÚreturnc                 óØ   — |�|€|�|€|�|€J ‚t        «       | _        |€6| j                  j                  t        d|«      t        d|«      «      | _        n|| _        || _        || _        y )NÚstrzdict[str, str])r   Úerror_readerÚget_error_messager   r   r	   r
   )Úselfr   r	   r
   s       úsC:\Users\Luka\AppData\Local\Temp\pip-target-o84fipzb\lib\python\duckdb/experimental/spark/errors/exceptions/base.pyÚ__init__zPySparkException.__init__	   s‡   € ð Ð#¨Ð)<ÐASÐA[ØˆO Ð!8Ð=OÐ=[ð	
ð 
ô /Ó0ˆÔàˆ?Ø×,Ñ,×>Ñ>Ü�U˜KÓ(¬$Ð/?ÐASÓ*TóˆD�Lð #ˆDŒLà&ˆÔØ"4ˆÕó    c                 ó   — | j                   S )zÔReturns an error class as a string.

        .. versionadded:: 3.4.0

        See Also:
        --------
        :meth:`PySparkException.getMessageParameters`
        :meth:`PySparkException.getSqlState`
        )r	   ©r   s    r   ÚgetErrorClasszPySparkException.getErrorClass"   s   € ð ×ÑÐr   c                 ó   — | j                   S )z×Returns a message parameters as a dictionary.

        .. versionadded:: 3.4.0

        See Also:
        --------
        :meth:`PySparkException.getErrorClass`
        :meth:`PySparkException.getSqlState`
        )r
   r   s    r   ÚgetMessageParametersz%PySparkException.getMessageParameters.   s   € ð ×&Ñ&Ð&r   c                  ó   — y)a$  Returns an SQLSTATE as a string.

        Errors generated in Python have no SQLSTATE, so it always returns None.

        .. versionadded:: 3.4.0

        See Also:
        --------
        :meth:`PySparkException.getErrorClass`
        :meth:`PySparkException.getMessageParameters`
        N© r   s    r   ÚgetSqlStatezPySparkException.getSqlState:   s   € ð r   c                 óz   — | j                  «       � d| j                  «       › d| j                  › �S | j                  S )NÚ[z] )r   r   r   s    r   Ú__str__zPySparkException.__str__H   s<   € Ø×ÑÓÐ+Ø�t×)Ñ)Ó+Ð,¨B¨t¯|©|¨nÐ=Ð=à—<‘<Ðr   )NNN)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Údictr   r   r   r   r   r   r   r   r   r      sŠ   „ ÙDð #à"&à48ñ5à�t‘ð5ð ˜4‘Zð	5ð !  c ™N¨TÑ1ð5ð 
ó5ð2
 ˜s T™zó 
 ð
' d¨3°¨8¡n°tÑ&;ó 
'óð ˜ô  r   r   c                   ó   — e Zd ZdZy)ÚAnalysisExceptionz#Failed to analyze a SQL query plan.N©r   r    r!   r"   r   r   r   r%   r%   O   s   „ Ú-r   r%   c                   ó   — e Zd ZdZy)ÚSessionNotSameExceptionz7Performed the same operation on different SparkSession.Nr&   r   r   r   r(   r(   S   s   „ ÚAr   r(   c                   ó   — e Zd ZdZy)ÚTempTableAlreadyExistsExceptionz6Failed to create temp view since it is already exists.Nr&   r   r   r   r*   r*   W   ó   „ Ú@r   r*   c                   ó   — e Zd ZdZy)ÚParseExceptionzFailed to parse a SQL command.Nr&   r   r   r   r-   r-   [   s   „ Ú(r   r-   c                   ó   — e Zd ZdZy)ÚIllegalArgumentExceptionz,Passed an illegal or inappropriate argument.Nr&   r   r   r   r/   r/   _   s   „ Ú6r   r/   c                   ó   — e Zd ZdZy)ÚArithmeticExceptionz;Arithmetic exception thrown from Spark with an error class.Nr&   r   r   r   r1   r1   c   s   „ ÚEr   r1   c                   ó   — e Zd ZdZy)ÚUnsupportedOperationExceptionzFUnsupported operation exception thrown from Spark with an error class.Nr&   r   r   r   r3   r3   g   s   „ ÚPr   r3   c                   ó   — e Zd ZdZy)ÚArrayIndexOutOfBoundsExceptionzJArray index out of bounds exception thrown from Spark with an error class.Nr&   r   r   r   r5   r5   k   s   „ ÚTr   r5   c                   ó   — e Zd ZdZy)ÚDateTimeExceptionz9Datetime exception thrown from Spark with an error class.Nr&   r   r   r   r7   r7   o   s   „ ÚCr   r7   c                   ó   — e Zd ZdZy)ÚNumberFormatExceptionz>Number format exception thrown from Spark with an error class.Nr&   r   r   r   r9   r9   s   s   „ ÚHr   r9   c                   ó   — e Zd ZdZy)ÚStreamingQueryExceptionz1Exception that stopped a :class:`StreamingQuery`.Nr&   r   r   r   r;   r;   w   s   „ Ú;r   r;   c                   ó   — e Zd ZdZy)ÚQueryExecutionExceptionzFailed to execute a query.Nr&   r   r   r   r=   r=   {   s   „ Ú$r   r=   c                   ó   — e Zd ZdZy)ÚPythonExceptionz&Exceptions thrown from Python workers.Nr&   r   r   r   r?   r?      s   „ Ú0r   r?   c                   ó   — e Zd ZdZy)ÚSparkRuntimeExceptionz8Runtime exception thrown from Spark with an error class.Nr&   r   r   r   rA   rA   ƒ   ó   „ ÚBr   rA   c                   ó   — e Zd ZdZy)ÚSparkUpgradeExceptionz*Exception thrown because of Spark upgrade.Nr&   r   r   r   rD   rD   ‡   s   „ Ú4r   rD   c                   ó   — e Zd ZdZy)ÚUnknownExceptionzNone of the above exceptions.Nr&   r   r   r   rF   rF   ‹   s   „ Ú'r   rF   c                   ó   — e Zd ZdZy)ÚPySparkValueErrorz6Wrapper class for ValueError to support error classes.Nr&   r   r   r   rH   rH   �   r+   r   rH   c                   ó   — e Zd ZdZy)ÚPySparkIndexErrorz6Wrapper class for IndexError to support error classes.Nr&   r   r   r   rJ   rJ   “   r+   r   rJ   c                   ó   — e Zd ZdZy)ÚPySparkTypeErrorz5Wrapper class for TypeError to support error classes.Nr&   r   r   r   rL   rL   —   s   „ Ú?r   rL   c                   ó   — e Zd ZdZy)ÚPySparkAttributeErrorz:Wrapper class for AttributeError to support error classes.Nr&   r   r   r   rN   rN   ›   ó   „ ÚDr   rN   c                   ó   — e Zd ZdZy)ÚPySparkRuntimeErrorz8Wrapper class for RuntimeError to support error classes.Nr&   r   r   r   rQ   rQ   Ÿ   rB   r   rQ   c                   ó   — e Zd ZdZy)ÚPySparkAssertionErrorz:Wrapper class for AssertionError to support error classes.Nr&   r   r   r   rS   rS   £   rO   r   rS   c                   ó   — e Zd ZdZy)ÚPySparkNotImplementedErrorz?Wrapper class for NotImplementedError to support error classes.Nr&   r   r   r   rU   rU   §   s   „ ÚIr   rU   N)$Útypingr   Úutilsr   Ú	Exceptionr   r%   r(   r*   r-   r/   r1   r3   r5   r7   r9   r;   r=   r?   rA   rD   rF   Ú
ValueErrorrH   Ú
IndexErrorrJ   Ú	TypeErrorrL   ÚAttributeErrorrN   ÚRuntimeErrorrQ   ÚAssertionErrorrS   ÚNotImplementedErrorrU   r   r   r   Ú<module>r`      sr  ðÝ å &ôF �yô F ôR.Ð(ô .ôBÐ.ô BôAÐ&7ô Aô)Ð&ô )ô7Ð/ô 7ôFÐ*ô FôQÐ$4ô QôUÐ%5ô UôDÐ(ô DôIÐ4ô Iô<Ð.ô <ô%Ð.ô %ô1Ð&ô 1ôCÐ,ô Cô5Ð,ô 5ô(Ð'ô (ôAÐ(¨*ô AôAÐ(¨*ô Aô@Ð'¨ô @ôEÐ,¨nô EôCÐ*¨Lô CôEÐ,¨nô EôJÐ!1Ð3Fõ Jr   