summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-06-22 20:17:45 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-06-22 20:17:45 +0000
commitea52c719b37c098e2f2d3b6cea49c9b9cc55a9f7 (patch)
tree4fb20fd59d694f9d929177d120b9e79135aa8c55 /src
parent0175a00ca90ce0da9e53fc3459458f786a991f98 (diff)
downloadbcfg2-ea52c719b37c098e2f2d3b6cea49c9b9cc55a9f7.tar.gz
bcfg2-ea52c719b37c098e2f2d3b6cea49c9b9cc55a9f7.tar.bz2
bcfg2-ea52c719b37c098e2f2d3b6cea49c9b9cc55a9f7.zip
add error types
(Logical change 1.236) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@990 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Structure.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/Server/Structure.py b/src/lib/Server/Structure.py
index 35af79271..82674573f 100644
--- a/src/lib/Server/Structure.py
+++ b/src/lib/Server/Structure.py
@@ -1,6 +1,15 @@
'''This is the Structure base class'''
__revision__ = '$Revision$'
+class StructureError(Exception):
+ '''Structure runtime error used to inform upper layers of internal generator failure'''
+ pass
+
+class StructureInitError(Exception):
+ '''Constructor time error that allows the upper layer to proceed in the face of
+ structure initialization failures'''
+ pass
+
class Structure(object):
'''The Structure class is used to define patterns of data in host configurations
Structure subtyped classes provide functions that group configurations into dependent