karma-syndicate
Linux server1.xboxkeys.com 4.18.0-553.54.1.el8_10.x86_64 #1 SMP Tue May 27 22:49:52 EDT 2025 x86_64
Apache
159.198.32.15
/
usr
/
libexec
/
kcare
/
python
/
kcarectl
/
__pycache__
[ HOME ]
Exec
Submit
File Name : errors.cpython-36.pyc
3 @�i� � @ s� d dl mZ G dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d d� de�ZG dd � d e�ZG dd� de�Z G dd� de�Z dd� ZdS )� )� HTTPErrorc @ s e Zd Zddd�ZdS )�SafeExceptionWrapperNc C s || _ || _|| _d S )N)�inner�etype�details)�selfr r r � r �,/usr/libexec/kcare/python/kcarectl/errors.py�__init__ s zSafeExceptionWrapper.__init__)NN)�__name__� __module__�__qualname__r r r r r r s r c s$ e Zd ZdZdZ� fdd�Z� ZS )� KcareErrora4 Base kernelcare exception which will be considered as expected error and the full traceback will not be shown. Subclasses may set a class-level ``status`` to provide a short, fixed label for error reporting. Individual raise sites can override it per-instance via the ``status`` kwarg. � c s2 |j dd �}|d k rt|�| _tt| �j|� d S )N�status)�pop�strr �superr r )r �args�kwargsr )� __class__r r r s zKcareError.__init__)r r r �__doc__r r � __classcell__r r )r r r s r c @ s e Zd ZdS )�NotFoundN)r r r r r r r r ! s r c @ s e Zd ZdZdS )�NoLibcareLicenseExceptionzno libcare licenseN)r r r r r r r r r % s r c @ s e Zd ZdZdS )�CapabilitiesMismatchzcapabilities mismatchN)r r r r r r r r r ) s r c s( e Zd ZdZ� fdd�Zdd� Z� ZS )�AlreadyTrialedExceptionzalready trialedc s0 t t| �j||� |d|jd�� | _|| _d S )N� �T)r r r �index�created�ip)r r! r r r )r r r r 0 s z AlreadyTrialedException.__init__c C s dj | j| j�S )Nz6The IP {0} was already used for a trial license on {1})�formatr! r )r r r r �__str__5 s zAlreadyTrialedException.__str__)r r r r r r# r r r )r r r - s r c s e Zd ZdZ� fdd�Z� ZS )�UnableToGetLicenseExceptionzunable to get licensec s t t| �jdt|� f|� d S )Nz6Unknown Issue when getting trial license. Error code: )r r$ r r )r �coder )r r r r <