File: //opt/alt/python37/lib/python3.7/site-packages/jsons/__pycache__/exceptions.cpython-37.pyc
B
�P�e � @ s� d Z ddlmZ ddlmZ G dd� de�ZG dd� de�ZG dd � d ee�Z G d
d� de�Z
G dd
� d
e�ZG dd� de
e�ZG dd� de
e �Z
G dd� de
e �ZG dd� de
�ZG dd� de�ZdS )z3
Contains the classes that may be raised by jsons.
� )�JSONDecodeError)�Optionalc @ s* e Zd ZdZed�dd�Zedd� �ZdS )�
JsonsErrorz,
Base class for all `jsons` errors.
)�messagec C s t �| |� || _dS )zZ
Constructor.
:param message: the message describing the problem.
N)� Exception�__init__�_message)�selfr � r
�A/opt/alt/python37/lib/python3.7/site-packages/jsons/exceptions.pyr
s zJsonsError.__init__c C s | j S )N)r )r r
r
r r s zJsonsError.messageN)�__name__�
__module__�__qualname__�__doc__�strr �propertyr r
r
r
r r s r c @ s e Zd ZdZdS )�ValidationErrorz9
Raised when the validation of an object failed.
N)r r
r r r
r
r
r r s r c @ s2 e Zd ZdZeed�dd�Zeed�dd��ZdS ) �
ArgumentErrorz�
Raised when serialization or deserialization went wrong caused by a wrong
argument when serializing or deserializing.
)r �argumentc C s"