????
Your IP : 3.22.234.133
�
�2�35����8�ddlmZddlmZGd�de��ZGd�dee��ZGd�de��ZGd �d
e��Z Gd�de��Z
Gd
�de��ZGd�de��ZGd�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.7/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 �rrzParseError.__init__sS�����
��� ��?�(�G�
�����G�J�J�d�j�J�J�t�y�J�J�K�K�K�K�Krc��|jS�N)r�rs rrzParseError.lines
���z�rc��|jSr)rr s rrzParseError.cols
���y�rr�rrrrrrrr) rrr �__doc__r�propertyrr�
__classcell__�rs@rrr
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 �rrzMixedArrayTypesError.__init__(s-���.��
������s�G��4�4�4�4�4r�rrrrrr�rrr r#rr%r&s@rr(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 �rrzInvalidNumberError.__init__3s-���"��
������s�G��4�4�4�4�4rr,r-r&s@rr0r0.r.rr0c�$��eZdZdZd�fd�Z�xZS) �InvalidDateTimeErrorz4
A datetime field was improperly specified.
rrrrrc�T��d}t���|||���dS)NzInvalid datetimer*r+rs �rrzInvalidDateTimeError.__init__>�-���$��
������s�G��4�4�4�4�4rr,r-r&s@rr3r39r.rr3c�$��eZdZdZd�fd�Z�xZS) �InvalidDateError�0
A date field was improperly specified.
rrrrrc�T��d}t���|||���dS)NzInvalid dater*r+rs �rrzInvalidDateError.__init__I�-��� ��
������s�G��4�4�4�4�4rr,r-r&s@rr7r7Dr.rr7c�$��eZdZdZd�fd�Z�xZS) �InvalidTimeErrorr8rrrrrc�T��d}t���|||���dS)NzInvalid timer*r+rs �rrzInvalidTimeError.__init__Tr:rr,r-r&s@rr<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 �rrz!InvalidNumberOrDateError.__init___s-���1��
������s�G��4�4�4�4�4rr,r-r&s@rr?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 �rrz!InvalidUnicodeValueError.__init__js-���)��
������s�G��4�4�4�4�4rr,r-r&s@rrBrBer.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 �rrzUnexpectedCharError.__init__us;���7�4��:�:�7�7��
������s�G��4�4�4�4�4r�rrrrrFrGrrr-r&s@rrErEpr.rrEc�$��eZdZdZd�fd�Z�xZS) �
EmptyKeyErrorz0
An empty key was found during parsing.
rrrrrc�T��d}t���|||���dS)Nz Empty keyr*r+rs �rrzEmptyKeyError.__init__�s-�����
������s�G��4�4�4�4�4rr,r-r&s@rrNrN{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 �rrzEmptyTableNameError.__init__�r5rr,r-r&s@rrQrQ�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 �rrz!InvalidCharInStringError.__init__�s>���=�t�D�z�z�=�=�=��
������s�G��4�4�4�4�4rrLr-r&s@rrTrT�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 �rrzUnexpectedEofError.__init__�s-���*��
������s�G��4�4�4�4�4rr,r-r&s@rrWrW�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 �rrzInternalParserError.__init__�sG���%��� #��?��?�?�?�"�C�
������s�C��0�0�0�0�0rrr"r-r&s@rrZrZ�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 �rrzNonExistentKey.__init__�s1���0�#�0�0�0��
������!�!�!�!�!rr-r&s@rr_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 �rrzKeyAlreadyPresent.__init__�sB����c�5�#�&�&��0�#�0�0�0��
������!�!�!�!�!rr-r&s@rrere�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 �rrzInvalidControlChar.__init__�s�������"�9�9��C��L���D� � �!�"�"�
�%��
*�#'�
*�
*��
*�
*�
*� � ������s�G��4�4�4�4�4r)
rrrrrFrrjrGrr�rrr rr%r&s@rriri�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 �rrzInvalidStringError.__init__�sv����U���A�b�D�!��
�����
H�y�
H�%�
H��
H�
H�'8�
H�
H�
H�
�
�
�
�
r)rtrGrurvrwrGrqr&s@rrsrs�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