AlkantarClanX12

Your IP : 3.147.51.75


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/tomlkit/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/tomlkit/__pycache__/exceptions.cpython-311.pyc

�

�܋fo��8�ddlmZddlmZGd�de��ZGd�dee��ZGd�de��ZGd	�d
e��Z	Gd�de��Z
Gd
�de��ZGd�de��ZGd�de��Z
Gd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�d e��ZGd!�d"ee��ZGd#�d$e��ZGd%�d&e��ZGd'�d(ee��Zd)S)*�)�annotations)�
Collectionc��eZdZdS)�TOMLKitErrorN)�__name__�
__module__�__qualname__���c/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tomlkit/exceptions.pyrrs�������Drrc�R��eZdZdZd
d�fd
�
Zed���Zed���Z�xZS)�
ParseErrorz�
    This error occurs when the parser encounters a syntax error
    in the TOML being parsed. The error references the line and
    location within the line where the error was encountered.
    N�line�int�col�message�
str | None�return�Nonec���||_||_|�d}t���|�d|j�d|j����dS)NzTOML parse errorz	 at line z col )�_line�_col�super�__init__��selfrrr�	__class__s    �rrzParseError.__init__sS�����
���	��?�(�G�
�����G�J�J�d�j�J�J�t�y�J�J�K�K�K�K�Krc��|jS�N)r�rs rrzParseError.lines
���z�rc��|jSr)rr s rrzParseError.cols
���y�rr�rrrrrrrr)	rrr	�__doc__r�propertyrr�
__classcell__�rs@rrr
s����������L�L�L�L�L�L�L�����X������X�����rrc�$��eZdZdZd�fd�Z�xZS)	�MixedArrayTypesErrorz@
    An array was found that had two or more element types.
    rrrrrc�T��d}t���|||���dS)NzMixed types found in array�r�rrrs    �rrzMixedArrayTypesError.__init__(s-���.��
������s�G��4�4�4�4�4r�rrrrrr�rrr	r#rr%r&s@rr(r(#�G���������5�5�5�5�5�5�5�5�5�5rr(c�$��eZdZdZd�fd�Z�xZS)	�InvalidNumberErrorz3
    A numeric field was improperly specified.
    rrrrrc�T��d}t���|||���dS)NzInvalid numberr*r+rs    �rrzInvalidNumberError.__init__3s-���"��
������s�G��4�4�4�4�4rr,r-r&s@rr0r0.r.rr0c�$��eZdZdZd�fd�Z�xZS)	�InvalidDateTimeErrorz4
    A datetime field was improperly specified.
    rrrrrc�T��d}t���|||���dS)NzInvalid datetimer*r+rs    �rrzInvalidDateTimeError.__init__>�-���$��
������s�G��4�4�4�4�4rr,r-r&s@rr3r39r.rr3c�$��eZdZdZd�fd�Z�xZS)	�InvalidDateError�0
    A date field was improperly specified.
    rrrrrc�T��d}t���|||���dS)NzInvalid dater*r+rs    �rrzInvalidDateError.__init__I�-��� ��
������s�G��4�4�4�4�4rr,r-r&s@rr7r7Dr.rr7c�$��eZdZdZd�fd�Z�xZS)	�InvalidTimeErrorr8rrrrrc�T��d}t���|||���dS)NzInvalid timer*r+rs    �rrzInvalidTimeError.__init__Tr:rr,r-r&s@rr<r<Or.rr<c�$��eZdZdZd�fd�Z�xZS)	�InvalidNumberOrDateErrorz;
    A numeric or date field was improperly specified.
    rrrrrc�T��d}t���|||���dS)NzInvalid number or date formatr*r+rs    �rrz!InvalidNumberOrDateError.__init___s-���1��
������s�G��4�4�4�4�4rr,r-r&s@rr?r?Zr.rr?c�$��eZdZdZd�fd�Z�xZS)	�InvalidUnicodeValueErrorz2
    A unicode code was improperly specified.
    rrrrrc�T��d}t���|||���dS)NzInvalid unicode valuer*r+rs    �rrz!InvalidUnicodeValueError.__init__js-���)��
������s�G��4�4�4�4�4rr,r-r&s@rrBrBer.rrBc�$��eZdZdZd
�fd	�Z�xZS)�UnexpectedCharErrorz;
    An unexpected character was found during parsing.
    rrr�char�strrrc�t��dt|����}t���|||���dS)NzUnexpected character: r*��reprrr�rrrrFrrs     �rrzUnexpectedCharError.__init__us;���7�4��:�:�7�7��
������s�G��4�4�4�4�4r�rrrrrFrGrrr-r&s@rrErEpr.rrEc�$��eZdZdZd�fd�Z�xZS)	�
EmptyKeyErrorz0
    An empty key was found during parsing.
    rrrrrc�T��d}t���|||���dS)Nz	Empty keyr*r+rs    �rrzEmptyKeyError.__init__�s-�����
������s�G��4�4�4�4�4rr,r-r&s@rrNrN{r.rrNc�$��eZdZdZd�fd�Z�xZS)	�EmptyTableNameErrorz7
    An empty table name was found during parsing.
    rrrrrc�T��d}t���|||���dS)NzEmpty table namer*r+rs    �rrzEmptyTableNameError.__init__�r5rr,r-r&s@rrQrQ�r.rrQc�$��eZdZdZd
�fd	�Z�xZS)�InvalidCharInStringErrorz@
    The string being parsed contains an invalid character.
    rrrrFrGrrc�v��dt|���d�}t���|||���dS)NzInvalid character z
 in stringr*rIrKs     �rrz!InvalidCharInStringError.__init__�s>���=�t�D�z�z�=�=�=��
������s�G��4�4�4�4�4rrLr-r&s@rrTrT�r.rrTc�$��eZdZdZd�fd�Z�xZS)	�UnexpectedEofErrorzD
    The TOML being parsed ended before the end of a statement.
    rrrrrc�T��d}t���|||���dS)NzUnexpected end of filer*r+rs    �rrzUnexpectedEofError.__init__�s-���*��
������s�G��4�4�4�4�4rr,r-r&s@rrWrW�r.rrWc�&��eZdZdZdd�fd
�
Z�xZS)
�InternalParserErrorz6
    An error that indicates a bug in the parser.
    Nrrrrrrrc�j��d}|r	|d|�d�z
}t���|||���dS)NzInternal parser errorz (�)r*r+)rrrr�msgrs     �rrzInternalParserError.__init__�sG���%���	#��?��?�?�?�"�C�
������s�C��0�0�0�0�0rrr"r-r&s@rrZrZ�sL���������1�1�1�1�1�1�1�1�1�1�1rrZc�"��eZdZdZ�fd�Z�xZS)�NonExistentKeyz&
    A non-existent key was used.
    c�V��d|�d�}t���|��dS)N�Key "z" does not exist.r+�r�keyrrs   �rrzNonExistentKey.__init__�s1���0�#�0�0�0��
������!�!�!�!�!rr-r&s@rr_r_�sB���������"�"�"�"�"�"�"�"�"rr_c�"��eZdZdZ�fd�Z�xZS)�KeyAlreadyPresentz*
    An already present key was used.
    c�x��t|d|��}d|�d�}t���|��dS)Nrcraz" already exists.)�getattrrrrbs   �rrzKeyAlreadyPresent.__init__�sB����c�5�#�&�&��0�#�0�0�0��
������!�!�!�!�!rr-r&s@rrere�sB���������"�"�"�"�"�"�"�"�"rrec� ��eZdZd
�fd	�Z�xZS)�InvalidControlCharrrrrF�typerGrrc���d}|dkr|dz
}|t|��dd�z
}d|�d|�d�}t���|||���dS)	Nz\u00��0�zFControl characters (codes less than 0x1f and 0x7f) are not allowed in z, use z insteadr*)�hexrr)rrrrFrj�display_coderrs       �rrzInvalidControlChar.__init__�s�������"�9�9��C��L���D�	�	�!�"�"�
�%��
*�#'�
*�
*��
*�
*�
*�	�	������s�G��4�4�4�4�4r)
rrrrrFrrjrGrr�rrr	rr%r&s@rriri�s=�������5�5�5�5�5�5�5�5�5�5rric� ��eZdZd�fd�Z�xZS)�InvalidStringError�valuerG�invalid_sequences�Collection[str]�	delimiterc	���t|��dd�}t���d|�|�|�d|�d���dS)N����zInvalid string: z. The character sequences z
 are invalid.rI)rrtrurw�repr_rs     �rrzInvalidStringError.__init__�sv����U���A�b�D�!��
�����
H�y�
H�%�
H��
H�
H�'8�
H�
H�
H�	
�	
�	
�	
�	
r)rtrGrurvrwrGrqr&s@rrsrs�s=�������
�
�
�
�
�
�
�
�
�
rrsN)�
__future__r�typingr�	Exceptionr�
ValueErrorrr(r0r3r7r<r?rBrErNrQrTrWrZ�KeyErrorr_rerirsr
rr�<module>r�sW��"�"�"�"�"�"�������	�	�	�	�	�9�	�	�	�������\����25�5�5�5�5�:�5�5�5�5�5�5�5�5��5�5�5�5�5�5�5�5�:�5�5�5�5�5�5�5�5�z�5�5�5�5�5�5�5�5�z�5�5�5�5�5�5�5�5�z�5�5�5�5�5�5�5�5�z�5�5�5�5�5�5�5�5�*�5�5�5�5�5�5�5�5�J�5�5�5�5�5�5�5�5�*�5�5�5�5�5�5�5�5�z�5�5�5�5�5�5�5�5��5�5�5�
1�
1�
1�
1�
1�*�
1�
1�
1�"�"�"�"�"�X�|�"�"�"�	"�	"�	"�	"�	"��	"�	"�	"�5�5�5�5�5��5�5�5�$
�
�
�
�
��\�
�
�
�
�
r