Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
python3-tvault-contego / usr / lib / python3.6 / site-packages / contego / __pycache__ / exception.cpython-36.opt-1.pyc
Size: Mime:
3

h§`œã@sTdZddlmZmZyddlmZWn ek
rDddlmZYnXej	e
ƒZGdd„deƒZ
Gdd„de
ƒZGd	d
„d
e
ƒZGdd„de
ƒZGd
d„de
ƒZGdd„de
ƒZGdd„deƒZGdd„deƒZGdd„de
ƒZGdd„de
ƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d e
ƒZGd!d"„d"e
ƒZGd#d$„d$eƒZd%S)&z"Contego base exception handling.

é)Ú_Ú_LE)Úlogécs2eZdZdZdZdZiZdZd‡fdd„	Z‡Z	S)	ÚContegoExceptionzÎBase Contego Exception

    To correctly use this class, inherit from it and define
    a 'message' property. That message will get printf'd
    with the keyword arguments provided to the constructor.

    zError: %(reason)siôFNcsª||_d|jkr6y|j|jd<Wntk
r4YnX|s–y|j|}WnLtk
r”tjdƒx&|jƒD]\}}tjd||fƒqlW|j}YnXt	t|ƒj
|ƒdS)NÚcodez$Exception in string format operationz%s: %s)ÚkwargsrÚAttributeErrorÚmessageÚ	ExceptionÚLOGZ	exceptionÚitemsÚerrorÚsuperÚ__init__)Úselfr
rÚnameÚvalue)Ú	__class__©ú/usr/lib/python3.6/exception.pyr#s

zContegoException.__init__)N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
rZheadersZsaferÚ
__classcell__rr)rrrsrc@seZdZdZdS)Ú
ErrorOccurredz
%(reason)sN)rrrr
rrrrr=src@seZdZdZdS)ÚTimeoutOccurredz
%(reason)sN)rrrr
rrrrrAsrc@seZdZdS)ÚInvalidNFSMountPointN)rrrrrrrrEsrc@seZdZdS)ÚRetryExceptionN)rrrrrrrrIsrc@seZdZdZdZdS)ÚNotFoundzResource could not be found.i”N)rrrr
rrrrrr Msr c@seZdZdZdS)ÚFileNotFoundz&File %(file_path)s could not be found.N)rrrr
rrrrr!Rsr!c@seZdZedƒZdS)ÚServiceNotFoundz*Service %(service_id)s could not be found.N)rrrrÚmsg_fmtrrrrr"Usr"c@seZdZedƒZdS)ÚServiceBinaryExistsz4Service with host %(host)s binary %(binary)s exists.N)rrrrr#rrrrr$Xsr$c@seZdZedƒZdS)ÚServiceTopicExistsz2Service with host %(host)s topic %(topic)s exists.N)rrrrr#rrrrr%\sr%c@seZdZedƒZdS)ÚHostNotFoundz!Host %(host)s could not be found.N)rrrrr#rrrrr&`sr&c@seZdZedƒZdS)ÚComputeHostNotFoundz)Compute host %(host)s could not be found.N)rrrrr#rrrrr'csr'c@seZdZedƒZdS)ÚHostBinaryNotFoundz2Could not find binary %(binary)s on host %(host)s.N)rrrrr#rrrrr(fsr(c@seZdZedƒZdS)ÚObjectActionErrorz3Object action %(action)s failed because: %(reason)sN)rrrrr#rrrrr)isr)c@seZdZedƒZdZdS)ÚInvalidz Bad Request - Invalid ParametersiN)rrrrr#rrrrrr*lsr*c@seZdZedƒZdS)Ú
ServiceTooOldz~This service is older (v%(thisver)i) than the minimum (v%(minver)i) version of the rest of the deployment. Unable to continue.N)rrrrr#rrrrr+psr+N)rZcontego.i18nrrZoslo_logrZloggingÚImportErrorZnova.openstack.commonZ	getLoggerrrrrrrrrr r!r"r$r%r&r'r(r)r*r+rrrrÚ<module>s,
(