OwlCyberSecurity - MANAGER
Edit File: exceptions.cpython-311.pyc
� �������h9$����������������������������d�dl�Zd�dlmZ�d�dlmZ�ddlmZ�ddlmZ�ddlm Z �ej ��������rddlmZ�dd lm Z �dd lmZ�dej��������ej��������ej��������e���������ef������������������dej��������e���������fd �Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d��de������������Z�G�d ��d!e������������ZdS�)"�����N)�gettext)�ngettext����)�get_text_stderr)�echo)�format_filename)�Command)�Context)� Parameter� param_hint�returnc������������������r�����|��4t����������|�t����������������������sd���������������������d��|�D���������������������������S�|�S�)Nz / c��������������3����4���K����|�]}t����������|������������V����d�S��N)�repr)�.0�xs��� �p/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/click/exceptions.py� <genexpr>z$_join_param_hints.<locals>.<genexpr>���s(����������6�6�a�$�q�'�'�6�6�6�6�6�6�����)� isinstance�str�join)r���s��� r����_join_param_hintsr������s@���������j��S�&A�&A���z�z�6�6�:�6�6�6�6�6�6��r���c���������������������������e�Zd�ZdZdZdeddf��fd�Zdefd�Zdefd�Zdd e j ��������e j��������e j��������������������������ddfd �Z ��xZS�)�ClickExceptionz8An exception that Click can handle and show to the user.r����messager ���Nc������������������X������t���������������������������������������������|�������������||�_��������d�S�r���)�super�__init__r���)�selfr���� __class__s��� �r���r ���zClickException.__init__���s&������� ������!�!�!�����r���c�����������������������|�j���������S�r����r����r!���s��� r����format_messagezClickException.format_message"���� �������|�r���c�����������������������|�j���������S�r���r$���r%���s��� r����__str__zClickException.__str__%���r'���r����filec�����������������������|�t������������������������}t����������t����������d���������������������������������|�������������������������������������������������|��������������d�S�)N�Error: {message}r$���)r*���)r���r����_�formatr&���)r!���r*���s��� r����showzClickException.show(���sQ�������<�"�$�$�D��Q�!� "� "� )� )�$�2E�2E�2G�2G� )� H� H�t�T�T�T�T�T�Tr���r���)�__name__� __module__�__qualname__�__doc__� exit_coder���r ���r&���r)����t�Optional�IO�Anyr/���� __classcell__�r"���s���@r���r���r������s����������������B�B���I��������������������������������������U��U���A�D���K�0��U�D��U��U��U��U��U��U��U��Ur���r���c���������������������������e�Zd�ZdZdZddedej��������d���������ddf��fd� Zdd ej��������ej ��������ej ��������������������������ddfd �Z��xZS�)� UsageErrora+��An internal exception that signals a usage error. This typically aborts any further handling. :param message: the error message to display. :param ctx: optionally the context that caused this error. Click will fill in the context automatically in some situations. ����Nr����ctxr ���r ���c������������������������t���������������������������������������������|�������������||�_��������|�j��������r|�j��������j��������nd�|�_��������d�S�r���)r���r ���r>����command�cmd)r!���r���r>���r"���s��� �r���r ���zUsageError.__init__:���s>������� ������!�!�!����>B�h�*P�$�(�*:�*:�D����r���r*���c����������������������|�t������������������������}d�}d}|�j���������g|�j��������j�����������������������������|�j���������������������Ct ����������d���������������������������������|�j��������j��������|�j��������j��������d����������������������}|��d�}|�j���������:|�j��������j��������}t����������|�j��������� ������������������������������������d|���||��������������t����������t ����������d���������������������������������|�������������������������������������������������||��������������d�S�) N��z"Try '{command} {option}' for help.r���)r@����option� )r*����colorr,���r$���)r���r>���r@����get_help_optionr-���r.����command_path�help_option_namesrF���r���� get_usager&���)r!���r*���rF����hints��� r���r/���zUsageError.show?���s������<�"�$�$�D������H� ��� �0�0���:�:�F��9�:�:�A�A���-�d�h�6P�QR�6S��B�����D���;�;�;�D��8���H�N�E��D�H�&�&�(�(�2�2�D�2�2��U�K�K�K�K�� � �!�!�(�(��1D�1D�1F�1F�(�G�G��� �� �� �� �� �� r���r���) r0���r1���r2���r3���r4���r���r5���r6���r ���r7���r8���r/���r9���r:���s���@r���r<���r<���/���s���������������������I�Q��Q���Q�!�*�Y�*?��Q�4��Q��Q��Q��Q��Q��Q� �� ���A�D���K�0�� �D�� �� �� �� �� �� �� �� r���r<���c���������������������������e�Zd�ZdZ � � �ddedej��������d���������dej��������d���������dej��������e���������d df ��fd � Zd efd�Z��xZ S�) �BadParametera ��An exception that formats out a standardized error message for a bad parameter. This is useful when thrown from a callback or type as Click will attach contextual information to it (for instance, which parameter it is). .. versionadded:: 2.0 :param param: the parameter object that caused this error. This can be left out, and Click will attach this info itself if possible. :param param_hint: a string that shows up as parameter name. This can be used as alternative to `param` in cases where custom validation should happen. If it is a string it's used as such, if it's a list then each item is quoted and separated. Nr���r>���r ����paramr���r���r ���c������������������h������t���������������������������������������������||�������������||�_��������||�_��������d�S�r���)r���r ���rN���r���)r!���r���r>���rN���r���r"���s��� �r���r ���zBadParameter.__init__h���s1�������� ������#�&�&�&��� �$����r���c������������������*����|�j����������|�j���������}nO|�j��������� |�j�����������������������������|�j��������������������}n(t ����������d���������������������������������|�j���������������������S�t ����������d���������������������������������t����������|������������|�j���������������������S�)NzInvalid value: {message}r$���z)Invalid value for {param_hint}: {message})r���r���)r���rN����get_error_hintr>���r-���r.���r���r���)r!���r���s��� r���r&���zBadParameter.format_messages���s��������?�&���J�J� �Z� #���2�2�4�8�<�<�J�J��/�0�0�7�7���7�M�M�M��<�=�=�D�D�(��4�4�d�l��E�� �� �� r����NNN� r0���r1���r2���r3���r���r5���r6���r ���r&���r9���r:���s���@r���rM���rM���V���s�������������������(�&*�)-�&*� %�� %�� %���Z� � "� %���z�+�&� %� ��J�s�O� %�� � %�� %�� %�� %�� %�� %� ��� �� �� �� �� �� �� �� r���rM���c������������ ����������������e�Zd�ZdZ � � � � �ddej��������e���������dej��������d���������dej��������d���������dej��������e���������d ej��������e���������d df��fd� Zd efd�Zd efd �Z ��xZ S�)�MissingParametera���Raised if click required an option or argument but it was not provided when invoking the script. .. versionadded:: 4.0 :param param_type: a string that indicates the type of the parameter. The default is to inherit the parameter type from the given `param`. Valid values are ``'parameter'``, ``'option'`` or ``'argument'``. Nr���r>���r ���rN���r���r���� param_typer ���c������������������b������t���������������������������������������������|pd|||�������������||�_��������d�S�)NrC���)r���r ���rV���)r!���r���r>���rN���r���rV���r"���s��� �r���r ���zMissingParameter.__init__����s2�������� �������B��U�J�?�?�?�$����r���c������������������J����|�j����������|�j���������}n)|�j��������� |�j�����������������������������|�j��������������������}nd�}t ����������|������������}|rd|���nd}|�j��������}|�|�j���������|�j��������j��������}|�j��������}|�j���������3|�j��������j��������� ��������������������|�j��������������������}|r |r |d|���z ��}n|}|rd|���nd}|dk����rt����������d������������}nO|dk����rt����������d������������}n9|dk����rt����������d ������������}n#t����������d ���������������������������������|�������������}|��|��d|���S�) N� rC���z. �argumentzMissing argumentrD���zMissing option� parameterzMissing parameterzMissing {param_type})rV����.)r���rN���rQ���r>���r���rV����param_type_namer����type�get_missing_messager-���r.���)r!���r���rV����msg� msg_extra�missings��� r���r&���zMissingParameter.format_message����sm������?�&�*.�/�J�J� �Z� #���2�2�4�8�<�<�J�J��J�&�z�2�2� �)3�;�%��%�%�%�� ��_� ���$�*�"8���3�J��l���:�!�� ��;�;�D�J�G�G�I��� $���$��+� �+�+�+�C�C�#�C��&�i�#�i�i�i�B�����#�#��*�+�+�G�G� �8� #� #��(�)�)�G�G� �;� &� &��+�,�,�G�G��.�/�/�6�6�*�6�M�M�G��-�:�-�-��-�-�-r���c�����������������������|�j���������s8|�j��������r|�j��������j��������nd�}t����������d���������������������������������|�������������S�|�j���������S�)NzMissing parameter: {param_name})� param_name)r���rN����namer-���r.���)r!���rd���s��� r���r)���zMissingParameter.__str__����sH�������|�� �,0�J�@�����D�J��6�7�7�>�>�*�>�U�U�U��<�r���)NNNNN)r0���r1���r2���r3���r5���r6���r���r ���r&���r)���r9���r:���s���@r���rU���rU�������s���������������� �� ��$(�%)�)-�&*�&*� %�� %���C�� %���Z� � "� %���z�+�&� %� ��J�s�O� %���J�s�O� %�� � %�� %�� %�� %�� %�� %�$.���$.��$.��$.��$.�L ��� �� �� �� �� �� �� �� r���rU���c���������������������������e�Zd�ZdZ � � �ddedej��������e���������dej��������ej��������e������������������dej��������d���������ddf ��fd � Zdefd �Z ��xZ S�)�NoSuchOptionzfRaised if click attempted to handle an option that does not exist. .. versionadded:: 4.0 N�option_namer���� possibilitiesr>���r ���r ���c������������������������|�#t����������d���������������������������������|�������������}t���������������������������������������������||�������������||�_��������||�_��������d�S�)NzNo such option: {name})re���)r-���r.���r���r ���rh���ri���)r!���rh���r���ri���r>���r"���s��� �r���r ���zNoSuchOption.__init__����sY���������?��0�1�1�8�8�k�8�J�J�G� ������#�&�&�&�&���*����r���c������������������������|�j���������s|�j��������S�d���������������������t����������|�j���������������������������������}t ����������ddt����������|�j������������������������������������������������������||�������������}|�j����������d|���S�)Nz, zDid you mean {possibility}?z#(Possible options: {possibilities}))�possibilityri���rY���)ri���r���r����sortedr����lenr.���)r!����possibility_str�suggests��� r���r&���zNoSuchOption.format_message����s��������!�� ��<���)�)�F�4�+=�$>�$>�?�?���)�1���"�#�#� �� ���&�_�O�&� L� L� � � ��,�*�*��*�*�*r���rR���)r0���r1���r2���r3���r���r5���r6����Sequencer ���r&���r9���r:���s���@r���rg���rg�������s��������������������$(�59�%)�+��+��+����C��+���z�!�*�S�/�2� +� ��Z� � "�+�� � +��+��+��+��+��+� +��� +�� +�� +�� +�� +�� +�� +�� +r���rg���c������������ ��������N�������e�Zd�ZdZ �d dededej��������d���������ddf��fd� Z��xZS�) �BadOptionUsagea��Raised if an option is generally supplied but the use of the option was incorrect. This is for instance raised if the number of arguments for an option is not correct. .. versionadded:: 4.0 :param option_name: the name of the option being used incorrectly. Nrh���r���r>���r ���r ���c������������������Z������t���������������������������������������������||�������������||�_��������d�S�r���)r���r ���rh���)r!���rh���r���r>���r"���s��� �r���r ���zBadOptionUsage.__init__����s-�������� ������#�&�&�&�&����r���r���) r0���r1���r2���r3���r���r5���r6���r ���r9���r:���s���@r���rs���rs�������sz�������������������LP�'��'��'�),�'�34�:�i�3H�'� �'��'��'��'��'��'��'��'��'��'r���rs���c�������������������������e�Zd�ZdZdS�)�BadArgumentUsagez�Raised if an argument is generally supplied but the use of the argument was incorrect. This is for instance raised if the number of values for an argument is not correct. .. versionadded:: 6.0 N�r0���r1���r2���r3�����r���r���rv���rv�������s��������������������r���rv���c��������������������T�������e�Zd�ZdZddedej��������e���������ddf��fd� Zdefd�Z��xZ S�) � FileErrorz"Raised if a file cannot be opened.N�filenamerK���r ���c������������������������|�t����������d������������}t���������������������������������������������|�������������t����������|������������|�_��������||�_��������d�S�)Nz unknown error)r-���r���r ���r����ui_filenamer{���)r!���r{���rK���r"���s��� �r���r ���zFileError.__init__��sH��������<��_�%�%�D� ��������� /�� 9� 9��� �� � � r���c������������������^�����t����������d���������������������������������|�j��������|�j���������������������S�)Nz+Could not open file {filename!r}: {message})r{���r���)r-���r.���r}���r���r%���s��� r���r&���zFileError.format_message��s3�������>�?�?�F�F��%�t�|��G�� �� �� r���r���rS���r:���s���@r���rz���rz�����s~���������������,�,�!��!���!�A�J�s�O��!�t��!��!��!��!��!��!� ��� �� �� �� �� �� �� �� r���rz���c�������������������������e�Zd�ZdZdS�)�Abortz=An internal signalling exception that signals Click to abort.Nrw���rx���r���r���r����r������s��������������G�G�G�Gr���r����c��������������������(�����e�Zd�ZdZdZddeddfd�ZdS�) �Exitz�An exception that indicates that the application should exit with some status code. :param code: the status code to exit with. �r4���r����coder ���Nc�����������������������||�_���������d�S�r���r����)r!���r����s��� r���r ���z Exit.__init__��s ������"����r���)r���)r0���r1���r2���r3���� __slots__�intr ���rx���r���r���r����r������sL�������������������I�#��#�S��#���#��#��#��#��#��#r���r����) �typingr5���r���r-���r����_compatr����utilsr���r���� TYPE_CHECKING�corer ���r ���r���r6����Unionrq���r���r���� Exceptionr���r<���rM���rU���rg���rs���rv���rz����RuntimeErrorr����r����rx���r���r����<module>r�������s�������������� �� �� �� �� �� ��������������$��$��$��$��$��$��������������"��"��"��"��"��"��?�� ��������������������� �1�7�1�:�c�?�C�#7�8�9���Z��_��������U��U��U��U��U�Y��U��U��U�.$ ��$ ��$ ��$ ��$ ���$ ��$ ��$ �N' ��' ��' ��' ��' �:��' ��' ��' �TB ��B ��B ��B ��B �|��B ��B ��B �J+��+��+��+��+�:��+��+��+�D'��'��'��'��'�Z��'��'��'�"���������z������� �� �� �� �� ��� �� �� �"H��H��H��H��H�L��H��H��H� #�� #�� #�� #�� #�<�� #�� #�� #�� #�� #r���