]> git.dolda2000.com Git - pdm.git/blobdiff - pdm/perf.py
Throw more informative error classes from perf.
[pdm.git] / pdm / perf.py
index 7c93c858c0442314086fb4df65ef1a22ddcb5cdc..7c0d561effaf32b8e33f2d9b8a55702af3ca441a 100644 (file)
@@ -51,6 +51,13 @@ __all__ = ["attrinfo", "simpleattr", "valueattr", "eventobj",
            "staticdir", "event", "procevent", "startevent",
            "finishevent"]
 
            "staticdir", "event", "procevent", "startevent",
            "finishevent"]
 
+class error(Exception):
+    pass
+class nosuchname(LookupError, error):
+    pass
+class nosuchproto(error):
+    pass
+
 class attrinfo(object):
     """The return value of the `attrinfo' method on `attr' objects as
     described in L{pdm.srv.perf}.
 class attrinfo(object):
     """The return value of the `attrinfo' method on `attr' objects as
     described in L{pdm.srv.perf}.