summaryrefslogtreecommitdiff
path: root/networkx/exception.py
diff options
context:
space:
mode:
authorMridul Seth <seth.mridul@gmail.com>2015-12-30 23:01:11 +0530
committerMridul Seth <seth.mridul@gmail.com>2015-12-30 23:01:11 +0530
commit9a43cd4866fb5c0231282065d5959d0e4d06420e (patch)
tree97845d94f24fc9d9cd12d76fe10f97924e94cbda /networkx/exception.py
parent6e2db3386bc98285eacd52b6d42bcb547f59bf9d (diff)
downloadnetworkx-9a43cd4866fb5c0231282065d5959d0e4d06420e.tar.gz
Add exception class NodeNotFound
Diffstat (limited to 'networkx/exception.py')
-rw-r--r--networkx/exception.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/networkx/exception.py b/networkx/exception.py
index 72696b24..4c1a1ec0 100644
--- a/networkx/exception.py
+++ b/networkx/exception.py
@@ -52,3 +52,9 @@ class NetworkXUnbounded(NetworkXAlgorithmError):
class NetworkXNotImplemented(NetworkXException):
"""Exception raised by algorithms not implemented for a type of graph."""
+
+class NotFound(NetworkXException):
+ """Exception"""
+
+class NodeNotFound(NotFound):
+ """Exception raised if node is not present in the graph"""