HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/josepy/__pycache__/errors.cpython-310.pyc
o

h9Ra1�@sTdZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)zJOSE errors.�)�Anyc@�eZdZdZdS)�ErrorzGeneric JOSE Error.N��__name__�
__module__�__qualname__�__doc__�r
r
�//usr/lib/python3/dist-packages/josepy/errors.pyr�rcs&eZdZdZdef�fdd�Z�ZS)�DeserializationErrorzJSON deserialization error.�returncsd�t����S)NzDeserialization error: {0})�format�super�__str__��self��	__class__r
rr��zDeserializationError.__str__)rrrr	�strr�
__classcell__r
r
rrr
	sr
c@r)�SerializationErrorzJSON serialization error.Nrr
r
r
rrrrcs<eZdZdZdededdf�fdd�Zdefdd	�Z�ZS)
�UnrecognizedTypeErrorz~Unrecognized type error.

    :ivar str typ: The unrecognized type of the JSON object.
    :ivar jobj: Full JSON object.

    �typ�jobjrNcs ||_||_t��t|��dS)N)rrr�__init__r)rrrrr
rrszUnrecognizedTypeError.__init__cCsd�|j|j�S)Nz){0} was not recognized, full message: {1})rrrrr
r
rr"rzUnrecognizedTypeError.__str__)	rrrr	rrrrrr
r
rrrsrN)r	�typingr�	Exceptionrr
rrr
r
r
r�<module>s