U §Ãq`Pã@s¸ddlmZmZmZGdd„deƒZGdd„deƒZGdd„deeƒZGdd „d eeƒZGd d „d e eƒZ Gd d „d e eƒZ Gdd„deƒZ Gdd„de ƒZ Gdd„deƒZ dd„ZdS)é)Úabsolute_importÚdivisionÚprint_functionc@seZdZdZdS)Ú CryptoErrorz4 Base exception for all nacl related errors N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©r r ú6/tmp/pip-target-nv4zd3e_/lib/python/nacl/exceptions.pyrsrc@seZdZdZdS)ÚBadSignatureErrorzD Raised when the signature was forged or otherwise corrupt. Nrr r r r r sr c@s eZdZdS)Ú RuntimeErrorN©rrr r r r r rsrc@s eZdZdS)ÚAssertionErrorNrr r r r r"src@s eZdZdS)Ú TypeErrorNrr r r r r&src@s eZdZdS)Ú ValueErrorNrr r r r r*src@s eZdZdS)ÚInvalidkeyErrorNrr r r r r.src@s eZdZdS)ÚCryptPrefixErrorNrr r r r r2src@seZdZdZdS)ÚUnavailableErrorzž is a subclass of :class:`~nacl.exceptions.RuntimeError`, raised when trying to call functions not available in a minimal build of libsodium. Nrr r r r r6srcOsFd}| dt¡}|r.t| t| ¡dƒ¡ƒ‚|dkr:dS||Ž‚dS)a„ Return if a condition is true, otherwise raise a caller-configurable :py:class:`Exception` :param bool cond: the condition to be checked :param sequence args: the arguments to be passed to the exception's constructor The only accepted named parameter is `raising` used to configure the exception to be raised if `cond` is not `True` z8check_condition() got an unexpected keyword argument {0}ÚraisingrTN)ÚpoprrÚformatÚreprÚpopitem)ZcondÚargsÚkwdsZ _CHK_UNEXPrr r r Úensure?s  rN)Ú __future__rrrÚ Exceptionrr rrrrrrrrr r r r Ús