HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //proc/self/root/usr/libexec/kcare/python/kcarectl/__pycache__/errors.cpython-312.pyc
�

p��g+���ddlmZGd�de�ZGd�de�ZGd�de�ZGd�d	e�ZGd
�de�ZGd�d
e�ZGd�de�Z	d�Z
y)�)�	HTTPErrorc��eZdZdd�Zy)�SafeExceptionWrapperNc�.�||_||_||_y�N)�inner�etype�details)�selfrr	r
s    �,/usr/libexec/kcare/python/kcarectl/errors.py�__init__zSafeExceptionWrapper.__init__	s����
���
����)NN��__name__�
__module__�__qualname__r
�rrrrs��rrc��eZdZdZy)�
KcareErrorzwBase kernelcare exception which will be considered as expected
    error and the full traceback will not be shown.
    N)rrr�__doc__rrrrrs���	rrc��eZdZy)�NotFoundN�rrrrrrrr���rrc��eZdZy)�NoLibcareLicenseExceptionNrrrrrrrrrc�$��eZdZ�fd�Zd�Z�xZS)�AlreadyTrialedExceptionc�l��tt|�
|i|��|d|jd�|_||_y)N��T)�superrr
�index�created�ip)rr%r$�args�kwargs�	__class__s     �rr
z AlreadyTrialedException.__init__ s6���
�%�t�5�t�F�v�F��q�7�=�=��#5�6�����rc�N�dj|j|j�S)Nz6The IP {0} was already used for a trial license on {1})�formatr%r$)rs r�__str__zAlreadyTrialedException.__str__%s ��G�N�N�t�w�w�X\�Xd�Xd�e�er)rrrr
r+�
__classcell__)r(s@rrrs����
frrc��eZdZd�Zy)�UnableToGetLicenseExceptionc�H�tj|dt|�z�y)Nz6Unknown Issue when getting trial license. Error code: )�	Exceptionr
�str)r�codes  rr
z$UnableToGetLicenseException.__init__*s�����4�!Y�\_�`d�\e�!e�frNrrrrr.r.)s��grr.c��eZdZy)�BadSignatureExceptionNrrrrr4r4.rrr4c����fd�}|S)Nc���t|��Sr)�
isinstance)�e�state�exc_lists  �rrzcheck_exc.<locals>.inner3s����!�X�&�&rr)r:rs` r�	check_excr;2s���'��LrN)�py23rr0rrrrrr.r4r;rrr�<module>r=sg��
��9��	��	�	�y�	�	�
�	�f�j�f�g�*�g�
	�J�	�r