From 1167da161c36276ac15b639c5ae7e5a49282410a Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 5 Jan 2004 23:22:10 +0000 Subject: add CfgFileException (Logical change 1.9) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@32 ce84e21b-d406-0410-9b95-82705330c041 --- src/Error.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/Error.py b/src/Error.py index 61177da99..593dfb9b2 100644 --- a/src/Error.py +++ b/src/Error.py @@ -15,3 +15,10 @@ class GeneratorError(Exception): class PublishError(Exception): pass +class CfgFileException(Exception): + def __init__(self,op,filename): + self.operation=op + self.filename=filename + + def __str__(self): + return "%s : %s"%(`self.operation`, `self.filename`) -- cgit v1.2.3-1-g7c22