File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/pyasn1/__pycache__/error.cpython-310.pyc
Back
o �h� � @ s� G d d� de �ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d d� dee�ZG dd � d ee�Z G dd� dee �ZdS )c @ s$ e Zd ZdZdd� Zedd� �ZdS )�PyAsn1ErroraB Base pyasn1 exception `PyAsn1Error` is the base exception class (based on :class:`Exception`) that represents all possible ASN.1 related errors. Parameters ---------- args: Opaque positional parameters Keyword Args ------------ kwargs: Opaque keyword parameters c O s || _ || _d S �N)�_args�_kwargs)�self�args�kwargs� r �B/usr/local/CyberPanel/lib/python3.10/site-packages/pyasn1/error.py�__init__ s zPyAsn1Error.__init__c C s | j �di �S )a7 Return exception context When exception object is created, the caller can supply some opaque context for the upper layers to better understand the cause of the exception. Returns ------- : :py:class:`dict` Dict holding context specific data �context)r �get)r r r r r s zPyAsn1Error.contextN)�__name__� __module__�__qualname__�__doc__r �propertyr r r r r r s r c @ � e Zd ZdZdS )�ValueConstraintErrora ASN.1 type constraints violation exception The `ValueConstraintError` exception indicates an ASN.1 value constraint violation. It might happen on value object instantiation (for scalar types) or on serialization (for constructed types). N�r r r r r r r r r / � r c @ r )�SubstrateUnderrunErrorz�ASN.1 data structure deserialization error The `SubstrateUnderrunError` exception indicates insufficient serialised data on input of a de-serialization codec. Nr r r r r r : r r c @ r )�EndOfStreamErrorz�ASN.1 data structure deserialization error The `EndOfStreamError` exception indicates the condition of the input stream has been closed. Nr r r r r r B r r c @ r )�UnsupportedSubstrateErrorz2Unsupported substrate type to parse as ASN.1 data.Nr r r r r r J r r c @ s e Zd ZdZddd�ZdS )�PyAsn1UnicodeErrora. Unicode text processing error The `PyAsn1UnicodeError` exception is a base class for errors relating to unicode text de/serialization. Apart from inheriting from :class:`PyAsn1Error`, it also inherits from :class:`UnicodeError` to help the caller catching unicode-related errors. Nc C s. t |t�rtj| g|j�R � t�| |� d S r )� isinstance�UnicodeErrorr r r )r �message� unicode_errorr r r r W s zPyAsn1UnicodeError.__init__r )r r r r r r r r r r N s r c @ r )�PyAsn1UnicodeDecodeErrora/ Unicode text decoding error The `PyAsn1UnicodeDecodeError` exception represents a failure to deserialize unicode text. Apart from inheriting from :class:`PyAsn1UnicodeError`, it also inherits from :class:`UnicodeDecodeError` to help the caller catching unicode-related errors. Nr r r r r r ] r r c @ r )�PyAsn1UnicodeEncodeErrora- Unicode text encoding error The `PyAsn1UnicodeEncodeError` exception represents a failure to serialize unicode text. Apart from inheriting from :class:`PyAsn1UnicodeError`, it also inherits from :class:`UnicodeEncodeError` to help the caller catching unicode-related errors. Nr r r r r r i r r N)� Exceptionr r r r r r r �UnicodeDecodeErrorr �UnicodeEncodeErrorr r r r r �<module> s &
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings