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/python311/lib/python3.11/site-packages/jsons/__pycache__/exceptions.cpython-311.pyc
�

)�;f��B�dZddlmZddlmZGd�de��ZGd�de��ZGd�d	ee��Z	Gd
�de��Z
Gd�d
e��ZGd�de
e��ZGd�de
e	��Z
Gd�de
e	��ZGd�de
��ZGd�de��ZdS)z3
Contains the classes that may be raised by jsons.
�)�JSONDecodeError)�Optionalc�4�eZdZdZdefd�Zed���ZdS)�
JsonsErrorz,
    Base class for all `jsons` errors.
    �messagec�J�t�||��||_dS)zZ
        Constructor.
        :param message: the message describing the problem.
        N)�	Exception�__init__�_message��selfrs  �C/opt/alt/python311/lib/python3.11/site-packages/jsons/exceptions.pyr
zJsonsError.__init__
s%��
	���4��)�)�)���
�
�
�c��|jS)N)r�r
s rrzJsonsError.messages
���}�rN)�__name__�
__module__�__qualname__�__doc__�strr
�propertyr�rrrrsT�������� �� � � � �����X���rrc��eZdZdZdS)�ValidationErrorz9
    Raised when the validation of an object failed.
    N�rrrrrrrrr����������rrc�>�eZdZdZdedefd�Zedefd���ZdS)�
ArgumentErrorz�
    Raised when serialization or deserialization went wrong caused by a wrong
    argument when serializing or deserializing.
    r�argumentc��t�||��t�||��||_dS)z�
        Constructor.
        :param message: the message describing the problem.
        :param argument: the name of the argument in question.
        N)rr
�
ValueError�	_argument)r
rrs   rr
zArgumentError.__init__&s;��	���D�'�*�*�*����D�'�*�*�*�!����r�returnc��|jS)zV
        The argument in question.
        :return: the name of the argument.
        )r"rs rrzArgumentError.argument0s���~�rN)rrrrrr
rrrrrrr sg��������
"��"�s�"�"�"�"���#�����X���rrc�v�eZdZdZdededeefd�Ze	defd���Z
e	deefd���Zd	S)
�DeserializationErrorz=
    Raised when deserialization failed for some reason.
    r�source�targetc�X�t�||��||_||_dS)z�
        Constructor.
        :param message: the message describing the problem.
        :param source: the object that was to be deserialized.
        :param target: the type to which `source` was to be deserialized.
        N)rr
�_source�_target)r
rr'r(s    rr
zDeserializationError.__init__>s,��	���D�'�*�*�*��������rr#c��|jS)zr
        The object that was to be deserialized.
        :return: the object that was to be deserialized.
        )r*rs rr'zDeserializationError.sourceI����|�rc��|jS)z�
        The target type to which `source` was to be deserialized.
        :return: the type to which `source` was to be deserialized.
        )r+rs rr(zDeserializationError.targetQr-rN)rrrrr�objectr�typer
rr'r(rrrr&r&9s���������	��	�V�	�X�d�^�	�	�	�	��������X�����������X���rr&c��eZdZdZdS)�SerializationErrorz;
    Raised when serialization failed for some reason.
    Nrrrrr2r2Zrrr2c�*�eZdZdZdedededefd�ZdS)�DecodeErrorz�
    Raised when decoding a string or bytes to Python types failed. This error
    is actually a wrapper around `json.JSONDecodeError`.
    rr'r(�errorc��t�||||��tj|||j|j��dS)a
        Constructor.
        :param message: the message of this error.
        :param source: the object that was to be deserialized.
        :param target: the type to which `source` was to be deserialized.
        :param error: the wrapped `JSONDecodeError`.
        N)r&r
r�doc�pos)r
rr'r(r5s     rr
zDecodeError.__init__fs?��	�%�%�d�G�V�V�D�D�D�� ��w��	�5�9�E�E�E�E�ErN)	rrrrrr/r0rr
rrrr4r4`sY��������

F��
F�V�
F�T�
F�'�
F�
F�
F�
F�
F�
Frr4c�*�eZdZdZdedededefd�ZdS)�UnfulfilledArgumentErrorzz
    Raised on a deserialization failure when an argument could not be fulfilled
    by the given object attr_getter.
    rrr'r(c�x�t�||||��t�|||��dS)a
        Constructor.
        :param message: the message of this error.
        :param argument: the argument that was unfulfilled.
        :param source: the object that was to be deserialized.
        :param target: the type to which `source` was to be deserialized.
        N�r&r
r�r
rrr'r(s     rr
z!UnfulfilledArgumentError.__init__y�<��	�%�%�d�G�V�V�D�D�D����t�W�h�7�7�7�7�7rN�rrrrrr/r0r
rrrr:r:ssV��������

8��
8��
8� �
8��	
8�
8�
8�
8�
8�
8rr:c�*�eZdZdZdedededefd�ZdS)�SignatureMismatchErrorz�
    Raised when the source could not be deserialized into the target type due
    to a mismatch between the source's attributes and the target's accepted
    parameters. This error is raised in "strict-mode" only.
    rrr'r(c�x�t�||||��t�|||��dS)a
        Constructor.
        :param message: the message of this error.
        :param argument: the argument that caused the problem.
        :param source: the object that was to be deserialized.
        :param target: the type to which `source` was to be deserialized.
        Nr<r=s     rr
zSignatureMismatchError.__init__�r>rNr?rrrrArA�sV��������
8��
8��
8� �
8��	
8�
8�
8�
8�
8�
8rrAc�B�eZdZdZdededefd�Zedefd���ZdS)	�UnknownClassErrorz�
    Raised when jsons failed to find a type instance to deserialize to. If this
    error occurs, consider using ``jsons.announce_class``.
    rr'�target_namec�N�t�|||d��||_dS)z�
        Constructor.
        :param message: the message of this error.
        :param source: the object that was to be deserialized.
        :param target_name: the name of the type that was the target type.
        N)r&r
�_target_name)r
rr'rEs    rr
zUnknownClassError.__init__�s,��	�%�%�d�G�V�T�B�B�B�'����rr#c��|jS)z�
        The name of the type that was unsuccessfully attempted to deserialize
        into.
        :return: the name of the type that was to be the target type.
        )rGrs rrEzUnknownClassError.target_name�s
��� � rN)	rrrrrr/r
rrErrrrDrD�sn��������
(��(�V�(�#�(�(�(�(��!�S�!�!�!��X�!�!�!rrDc��eZdZdZdefd�ZdS)�InvalidDecorationErrorz9
    Raised when a jsons decorator was wrongly used.
    rc�<�t�||��dS)zQ
        Constructor.
        :param message: the message of this error.
        N)rr
rs  rr
zInvalidDecorationError.__init__�s ��
	���D�'�*�*�*�*�*rN)rrrrrr
rrrrJrJ�s9��������+��+�+�+�+�+�+rrJN)r�jsonr�typingrr	rrr!rr&r2r4r:rArDrJrrr�<module>rNs�����!� � � � � ����������������$�����j���������J�
����2�����:����B���������F�F�F�F�F�&��F�F�F�&8�8�8�8�8�3�]�8�8�8�,8�8�8�8�8�1�=�8�8�8�.!�!�!�!�!�,�!�!�!�4
+�
+�
+�
+�
+�Z�
+�
+�
+�
+�
+r