%PDF- %PDF-
Direktori : /lib/python3/dist-packages/gpg/__pycache__/ |
Current File : //lib/python3/dist-packages/gpg/__pycache__/errors.cpython-312.pyc |
� e�\c � � � d dl mZmZmZ ddlmZ ddlmZ [[[dZdZ ej d e � � [ G d� de� Z G d � d e� Z d d�Z G d� d e e� 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� Zy)!� )�absolute_import�print_function�unicode_literals� )�gpgme)�utilN�GPG_ERR_c �^ � e Zd ZdZd d�Zed� � Zed� � Zed� � Zed� � Z d� Z y) �GpgErrora> A GPG Error This is the base of all errors thrown by this library. If the error originated from GPGME, then additional information can be found by looking at 'code' for the error code, and 'source' for the errors origin. Suitable constants for comparison are defined in this module. 'code_str' and 'source_str' are human-readable versions of the former two properties. If 'context' is not None, then it contains a human-readable hint as to where the error originated from. If 'results' is not None, it is a tuple containing results of the operation that failed. The tuples elements are the results of the function that raised the error. Some operations return results even though they signal an error. Of course this information must be taken with a grain of salt. But often, this information is useful for diagnostic uses or to give the user feedback. Since the normal control flow is disrupted by the exception, the callee can no longer return results, hence we attach them to the exception objects. Nc �. � || _ || _ || _ y �N)�error�context�results)�selfr r r s �,/usr/lib/python3/dist-packages/gpg/errors.py�__init__zGpgError.__init__= s � ��� ������� c �Z � | j �y t j | j � S r )r r �gpgme_err_code�r s r �codez GpgError.codeB �$ � ��:�:����#�#�D�J�J�/�/r c �Z � | j �y t j | j � S r )r r �gpgme_strerrorr s r �code_strzGpgError.code_strH r r c �Z � | j �y t j | j � S r )r r �gpgme_err_sourcer s r �sourcezGpgError.sourceN s$ � ��:�:����%�%�d�j�j�1�1r c �Z � | j �y t j | j � S r )r r �gpgme_strsourcer s r � source_strzGpgError.source_strT s$ � ��:�:����$�$�T�Z�Z�0�0r c � � g }| j �|j | j � | j �6|j | j � |j | j � dj |� S )Nz: )r �appendr r"