HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/django/core/__pycache__/exceptions.cpython-310.pyc
o

/�h�@s�dZddlZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�Z	Gdd�de	�Z
Gdd�de	�ZGdd�de	�ZGdd�de	�Z
Gdd�de	�ZGdd�de	�ZGdd�de	�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e�ZGd&d'�d'e�ZGd(d)�d)e�Zd*ZGd+d,�d,e�ZGd-d.�d.e�ZGd/d0�d0e�ZdS)1z.
Global Django exception and warning classes.
�N)�
make_hashablec@�eZdZdZdS)�FieldDoesNotExistz(The requested model field does not existN��__name__�
__module__�__qualname__�__doc__�r
r
�8/usr/lib/python3/dist-packages/django/core/exceptions.pyr	�rc@r)�AppRegistryNotReadyz-The django.apps registry is not populated yetNrr
r
r
rr
rr
c@seZdZdZdZdS)�ObjectDoesNotExistz#The requested object does not existTN)rrrr	�silent_variable_failurer
r
r
rrsrc@r)�MultipleObjectsReturnedz?The query returned multiple objects when only one was expected.Nrr
r
r
rrrrc@r)�SuspiciousOperationz!The user did something suspiciousNrr
r
r
rrsrc@r)�SuspiciousMultipartFormz+Suspect MIME request in multipart form dataNrr
r
r
rr!rrc@r)�SuspiciousFileOperationz/A Suspicious filesystem operation was attemptedNrr
r
r
rr&rrc@r)�DisallowedHostz'HTTP_HOST header contains invalid valueNrr
r
r
rr+rrc@r)�DisallowedRedirectz&Redirect to scheme not in allowed listNrr
r
r
rr0rrc@r)�TooManyFieldsSentzl
    The number of fields in a GET or POST request exceeded
    settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.
    Nrr
r
r
rr5�rc@r)�TooManyFilesSentzk
    The number of fields in a GET or POST request exceeded
    settings.DATA_UPLOAD_MAX_NUMBER_FILES.
    Nrr
r
r
rr=src@r)�RequestDataTooBigzq
    The size of the request (excluding any file uploads) exceeded
    settings.DATA_UPLOAD_MAX_MEMORY_SIZE.
    Nrr
r
r
rrFrrc@r)�RequestAbortedz=The request was closed before it was completed, or timed out.Nrr
r
r
rrNrrc@r)�
BadRequestz1The request is malformed and cannot be processed.Nrr
r
r
rrSrrc@r)�PermissionDeniedz+The user did not have permission to do thatNrr
r
r
rrXrrc@r)�ViewDoesNotExistz!The requested view does not existNrr
r
r
rr]rrc@r)�MiddlewareNotUsedz8This middleware is not used in this server configurationNrr
r
r
rrbrrc@r)�ImproperlyConfiguredz'Django is somehow improperly configuredNrr
r
r
rrgrrc@r)�
FieldErrorz(Some kind of problem with a model field.Nrr
r
r
rr lrr �__all__csjeZdZdZd�fdd�	Zedd��Zedd��Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
�ZS)�ValidationErrorzAn error while validating data.Ncst��|||�t|t�r*t|d�r|j}nt|d�s|j}n|j|j|j	}}}t|t
�rLi|_|��D]\}}t|t�sCt|�}|j|j|<q6dSt|t�r}g|_|D]$}t|t�sat|�}t|d�rs|j�
t|j��g��qV|j�
|j�qVdS||_||_||_	|g|_dS)a�
        The `message` argument can be a single error, a list of errors, or a
        dictionary that maps field names to lists of errors. What we define as
        an "error" can be either a simple string or an instance of
        ValidationError with its message attribute set, and what we define as
        list or dictionary can be an actual `list` or `dict` or an instance
        of ValidationError with its `error_list` or `error_dict` attribute set.
        �
error_dict�messageN)�super�__init__�
isinstancer"�hasattrr#�
error_listr$�code�params�dict�items�list�extend�sum�values)�selfr$r*r+�field�messages��	__class__r
rr&vs6	




�


�
zValidationError.__init__cCst|d�t|�S�Nr#)�getattrr,�r2r
r
r�message_dict�s
zValidationError.message_dictcCs$t|d�rtt|���g�St|�Sr7)r(r0r,r1r.r9r
r
rr4�s
zValidationError.messagescCsLt|d�r|j��D]
\}}|�|g��|�q
|S|�tg��|j�|Sr7)r(r#r-�
setdefaultr/�NON_FIELD_ERRORSr))r2r#r3r)r
r
r�update_error_dict�s
�z!ValidationError.update_error_dictccsf�t|d�r|j��D]
\}}|tt|��fVqdS|jD]}|j}|jr+||j;}t|�VqdSr7)	r(r#r-r.r"r)r$r+�str)r2r3�errors�errorr$r
r
r�__iter__�s�
�

�zValidationError.__iter__cCs"t|d�rtt|��Stt|��Sr7)r(�reprr,r.r9r
r
r�__str__�s
zValidationError.__str__cCsd|S)NzValidationError(%s)r
r9r
r
r�__repr__�szValidationError.__repr__cCst|t�stSt|�t|�kS)N)r'r"�NotImplemented�hash)r2�otherr
r
r�__eq__�s
zValidationError.__eq__cCsVt|d�rt|j|jt|j�f�St|d�rtt|j��Sttt|j	t
�d�d���S)Nr$r#)�key)r(rFr$r*rr+r#�tuple�sortedr)�operator�
attrgetterr9r
r
r�__hash__�s
�
zValidationError.__hash__)NN)rrrr	r&�propertyr:r4r=rArCrDrHrN�
__classcell__r
r
r5rr"ts+

r"c@r)�EmptyResultSetz)A database query predicate is impossible.Nrr
r
r
rrQ�rrQc@r)�SynchronousOnlyOperationzBThe user tried to call a sync-only function from an async context.Nrr
r
r
rrR�rrR)r	rL�django.utils.hashabler�	Exceptionrr
rrrrrrrrrrrrrrrrr r<r"rQrRr
r
r
r�<module>s4	g