mirror of
https://github.com/vivisect/vivisect
synced 2026-06-08 18:04:23 +00:00
19 lines
541 B
Python
19 lines
541 B
Python
|
|
class VisGraphException(Exception):
|
|
pass
|
|
|
|
class DuplicateNode(VisGraphException):
|
|
def __init__(self, node):
|
|
Exception.__init__(self, repr(node))
|
|
self.node = node
|
|
|
|
class NodeNonExistant(VisGraphException):
|
|
def __init__(self, nodeid):
|
|
self.nodeid = nodeid
|
|
Exception.__init__(self, 'Node %d does not exist!' % nodeid)
|
|
|
|
class EdgeNonExistant(VisGraphException):
|
|
def __init__(self, edgeid):
|
|
self.edgeid = edgeid
|
|
Exception.__init__(self, 'Edge %d does not exist!' % edgeid)
|