%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/ansible/module_utils/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.9/site-packages/ansible/module_utils/__pycache__/errors.cpython-39.pyc

a

�)gD
�@s<ddlmZmZmZeZGdd�de�ZGdd�de�ZGdd�de�Z	Gdd	�d	e�Z
Gd
d�de�ZGdd
�d
e�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e�Zd&S)'�)�absolute_import�division�print_functionc@seZdZdZdS)�AnsibleFallbackNotFoundz Fallback validator was not foundN��__name__�
__module__�__qualname__�__doc__�rr�?/usr/lib/python3.9/site-packages/ansible/module_utils/errors.pyr	srcs,eZdZdZ�fdd�Zedd��Z�ZS)�AnsibleValidationErrorz%Single argument spec validation errorcstt|��|�||_dS�N)�superr
�__init__Z
error_message)�self�message��	__class__rrrszAnsibleValidationError.__init__cCs
|jdS)z:The error message passed in when the exception was raised.r)�args�rrrr�msgszAnsibleValidationError.msg)rrr	r
r�propertyr�
__classcell__rrrrr

sr
c@sZeZdZdZddd�Zdd�Zdd�Zd	d
�Zedd��Z	ed
d��Z
dd�Zdd�ZdS)�AnsibleValidationErrorMultiplez(Multiple argument spec validation errorsNcCs|r|dd�ng|_dSr��errors�rrrrrrsz'AnsibleValidationErrorMultiple.__init__cCs
|j|Srr�r�keyrrr�__getitem__"sz*AnsibleValidationErrorMultiple.__getitem__cCs||j|<dSrr)rr�valuerrr�__setitem__%sz*AnsibleValidationErrorMultiple.__setitem__cCs|j|=dSrrrrrr�__delitem__(sz*AnsibleValidationErrorMultiple.__delitem__cCs|jdjdS)z5The first message from the first error in ``errors``.r)rrrrrrr+sz"AnsibleValidationErrorMultiple.msgcCsdd�|jD�S)z2:class:`list` of each error message in ``errors``.cSsg|]
}|j�qSr)r)�.0�errrrr�
<listcomp>3�z;AnsibleValidationErrorMultiple.messages.<locals>.<listcomp>rrrrr�messages0sz'AnsibleValidationErrorMultiple.messagescCs|j�|�dS)znAppend a new error to ``self.errors``.

        Only :class:`AnsibleValidationError` should be added.
        N)r�append)r�errorrrrr)5sz%AnsibleValidationErrorMultiple.appendcCs|j�|�dS)zhAppend each item in ``errors`` to ``self.errors``. Only :class:`AnsibleValidationError` should be added.N)r�extendrrrrr+=sz%AnsibleValidationErrorMultiple.extend)N)
rrr	r
rr r"r#rrr(r)r+rrrrrs


rc@seZdZdZdS)�
AliasErrorzError handling aliasesNrrrrrr,Bsr,c@seZdZdZdS)�ArgumentTypeErrorzError with parameter typeNrrrrrr-Fsr-c@seZdZdZdS)�ArgumentValueErrorzError with parameter valueNrrrrrr.Jsr.c@seZdZdZdS)�DeprecationErrorz'Error processing parameter deprecationsNrrrrrr/Nsr/c@seZdZdZdS)�ElementErrorzError when validating elementsNrrrrrr0Rsr0c@seZdZdZdS)�MutuallyExclusiveErrorz+Mutually exclusive parameters were suppliedNrrrrrr1Vsr1c@seZdZdZdS)�
NoLogErrorzError converting no_log valuesNrrrrrr2Zsr2c@seZdZdZdS)�RequiredByErrorz;Error with parameters that are required by other parametersNrrrrrr3^sr3c@seZdZdZdS)�RequiredDefaultErrorz1A required parameter was assigned a default valueNrrrrrr4bsr4c@seZdZdZdS)�
RequiredErrorzMissing a required parameterNrrrrrr5fsr5c@seZdZdZdS)�RequiredIfErrorz,Error with conditionally required parametersNrrrrrr6jsr6c@seZdZdZdS)�RequiredOneOfErrorz4Error with parameters where at least one is requiredNrrrrrr7nsr7c@seZdZdZdS)�RequiredTogetherErrorz0Error with parameters that are required togetherNrrrrrr8rsr8c@seZdZdZdS)�SubParameterTypeErrorzIncorrect type for subparameterNrrrrrr9vsr9c@seZdZdZdS)�UnsupportedErrorz$Unsupported parameters were suppliedNrrrrrr:zsr:N)Z
__future__rrr�typeZ
__metaclass__�	Exceptionrr
rr,r-r.r/r0r1r2r3r4r5r6r7r8r9r:rrrr�<module>s&'

Zerion Mini Shell 1.0