/usr/lib64/python2.6/site-packages/psutil
NameSizeModeActions
error.py6110644editdlrm
error.pyc6200644editdlrm
error.pyo6200644editdlrm
_common.py59630644editdlrm
_common.pyc72880644editdlrm
_common.pyo72880644editdlrm
_compat.py96050644editdlrm
_compat.pyc99380644editdlrm
_compat.pyo99380644editdlrm
_error.py20310644editdlrm
_error.pyc30730644editdlrm
_error.pyo30730644editdlrm
_psbsd.py119490644editdlrm
_psbsd.pyc139600644editdlrm
_psbsd.pyo139600644editdlrm
_pslinux.py387900644editdlrm
_pslinux.pyc327710644editdlrm
_pslinux.pyo327270644editdlrm
_psmswindows.py161250644editdlrm
_psmswindows.pyc175780644editdlrm
_psmswindows.pyo175780644editdlrm
_psosx.py101000644editdlrm
_psosx.pyc126700644editdlrm
_psosx.pyo126700644editdlrm
_psposix.py38540644editdlrm
_psposix.pyc37830644editdlrm
_psposix.pyo37420644editdlrm
__init__.py493080644editdlrm
__init__.pyc469940644editdlrm
__init__.pyo469940644editdlrm
Edit: /usr/lib64/python2.6/site-packages/psutil/_error.py (2031B)
# Copyright (c) 2009, Jay Loden, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """psutil exception classes. Not supposed to be used / imported directly. Instead use psutil.NoSuchProcess, etc. """ class Error(Exception): """Base exception class. All other psutil exceptions inherit from this one. """ class NoSuchProcess(Error): """Exception raised when a process with a certain PID doesn't or no longer exists (zombie). """ def __init__(self, pid, name=None, msg=None): self.pid = pid self.name = name self.msg = msg if msg is None: if name: details = "(pid=%s, name=%s)" % (self.pid, repr(self.name)) else: details = "(pid=%s)" % self.pid self.msg = "process no longer exists " + details def __str__(self): return self.msg class AccessDenied(Error): """Exception raised when permission to perform an action is denied.""" def __init__(self, pid=None, name=None, msg=None): self.pid = pid self.name = name self.msg = msg if msg is None: if (pid is not None) and (name is not None): self.msg = "(pid=%s, name=%s)" % (pid, repr(name)) elif (pid is not None): self.msg = "(pid=%s)" % self.pid else: self.msg = "" def __str__(self): return self.msg class TimeoutExpired(Error): """Raised on Process.wait(timeout) if timeout expires and process is still alive. """ def __init__(self, pid=None, name=None): self.pid = pid self.name = name if (pid is not None) and (name is not None): self.msg = "(pid=%s, name=%s)" % (pid, repr(name)) elif (pid is not None): self.msg = "(pid=%s)" % self.pid else: self.msg = "" def __str__(self): return self.msg