Merge remote-tracking branch 'origin/5.0' into bootmanager-vender
[bootmanager.git] / source / Exceptions.py
diff --git a/source/Exceptions.py b/source/Exceptions.py
new file mode 100644 (file)
index 0000000..de2a670
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+#
+# Copyright (c) 2003 Intel Corporation
+# All rights reserved.
+#
+# Copyright (c) 2004-2006 The Trustees of Princeton University
+# All rights reserved.
+
+class BootManagerException(Exception):
+    def __init__( self, err ):
+        self.__fault= err
+
+    def __str__( self ):
+        return self.__fault
+    
+class BootManagerAuthenticationException(Exception):
+    def __init__( self, err ):
+        self.__fault= err
+
+    def __str__( self ):
+        return self.__fault