From 72b692959cb567d01ee376ef248d98004727808f Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Fri, 14 Mar 2008 12:01:28 +0100 Subject: Create an use the invalidpluginname exception. --- pyfirstaidkit/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyfirstaidkit/errors.py') diff --git a/pyfirstaidkit/errors.py b/pyfirstaidkit/errors.py index b967bc9..31f1739 100644 --- a/pyfirstaidkit/errors.py +++ b/pyfirstaidkit/errors.py @@ -27,3 +27,9 @@ class InvalidFlowNameException(Exception): self.message="There are no flows by the name of %s" % name def __str__(self): return self.message + +class InvalidPluginNameException(Exception): + def __init__(self, name): + self.message="There are no flows by the name of %s" % name + def __str__(self): + return self.message -- cgit