summaryrefslogtreecommitdiff
path: root/psutil/error.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/error.py')
-rw-r--r--psutil/error.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/psutil/error.py b/psutil/error.py
new file mode 100644
index 00000000..d52362e1
--- /dev/null
+++ b/psutil/error.py
@@ -0,0 +1,9 @@
+import sys
+
+# this exception get overriden by the platform specific modules if necessary
+class NoSuchProcess(Exception):
+ """No process was found for the given parameters."""
+
+class AccessDenied(Exception):
+ """Exception raised when permission to perform an action is denied."""
+