summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-01-05 23:22:10 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-01-05 23:22:10 +0000
commit1167da161c36276ac15b639c5ae7e5a49282410a (patch)
tree80ef4873727fe7e91bc749dcb0afa687cc136a20 /src
parentf7be69052c78f2a37df2e9ac2254fa2c3e931e17 (diff)
downloadbcfg2-1167da161c36276ac15b639c5ae7e5a49282410a.tar.gz
bcfg2-1167da161c36276ac15b639c5ae7e5a49282410a.tar.bz2
bcfg2-1167da161c36276ac15b639c5ae7e5a49282410a.zip
add CfgFileException
(Logical change 1.9) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@32 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/Error.py7
1 files changed, 7 insertions, 0 deletions
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`)