From ea52c719b37c098e2f2d3b6cea49c9b9cc55a9f7 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 22 Jun 2005 20:17:45 +0000 Subject: 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 --- src/lib/Server/Structure.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-1-g7c22