Viewing File: /opt/alt/python35/lib64/python3.5/site-packages/psutil/__pycache__/_exceptions.cpython-35.opt-1.pyc



Cs[รใ@srGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd	„d	eƒZd
S)c@s7eZdZdZddd„Zdd„ZeZdS)ฺErrorzQBase exception class. All other psutil exceptions inherit
    from this one.
    ฺcCstj||ƒ||_dS)N)ฺ	Exceptionฺ__init__ฺmsg)ฺselfrฉr๚/_exceptions.pyrszError.__init__cCs#d|jj|jf}|jƒS)Nzpsutil.%s %s)ฺ	__class__ฺ__name__rฺstrip)rZretrrrฺ__repr__szError.__repr__N)r
ฺ
__module__ฺ__qualname__ฺ__doc__rrฺ__str__rrrrrsrc@s(eZdZdZdddd„ZdS)ฺ
NoSuchProcesszXException raised when a process with a certain PID doesn't
    or no longer exists.
    NcCsztj||ƒ||_||_||_|dkrv|r\d|jt|jƒf}n
d|j}d||_dS)Nz(pid=%s, name=%s)z(pid=%s)zprocess no longer exists )rrฺpidฺnamerฺrepr)rrrrฺdetailsrrrrs			
zNoSuchProcess.__init__)r
r
rrrrrrrrsrc@s+eZdZdZddddd„ZdS)ฺ
ZombieProcessa1Exception raised when querying a zombie process. This is
    raised on macOS, BSD and Solaris only, and not always: depending
    on the query the OS may be able to succeed anyway.
    On Linux all zombie processes are querable (hence this is never
    raised). Windows doesn't have zombie processes.
    NcCsซtj||ƒ||_||_||_||_|dkrงd|g}|rm|jdt|jƒƒ|r‡|jd|jƒddj|ƒ}d||_dS)Nzpid=%szname=%szppid=%sz(%s)z, z'process still exists but it's a zombie )	rrrฺppidrrฺappendrฺjoin)rrrrrฺargsrrrrr0s				
zZombieProcess.__init__)r
r
rrrrrrrr(src@s+eZdZdZddddd„ZdS)ฺAccessDeniedz@Exception raised when permission to perform an action is denied.NcCs—tj||ƒ||_||_||_|dkr“|dk	rk|dk	rkd|t|ƒf|_n(|dk	rŠd|j|_n	d|_dS)Nz(pid=%s, name=%s)z(pid=%s)r)rrrrrr)rrrrrrrrCs			zAccessDenied.__init__)r
r
rrrrrrrr@src@s(eZdZdZdddd„ZdS)ฺTimeoutExpiredzWRaised on Process.wait(timeout) if timeout expires and process
    is still alive.
    NcCstj|d|ƒ||_||_||_|dk	ri|dk	ri|jd|t|ƒf7_n"|dk	r‹|jd|j7_dS)Nztimeout after %s secondsz (pid=%s, name=%s)z	 (pid=%s))rrฺsecondsrrrr)rrrrrrrrVs			"zTimeoutExpired.__init__)r
r
rrrrrrrrQsrN)rrrrrrrrrrฺ<module>s
Back to Directory File Manager