s4:provision - Fix up ProvisioningError class as suggested by Jelmer
[ira/wip.git] / source4 / scripting / python / samba / provision.py
index b00f240257e6a7bd22ffb06be7dd22a6fd672d65..9a41709830132f05c0ffacb36e63749c00257e1d 100644 (file)
@@ -58,11 +58,6 @@ from dcerpc.misc import SEC_CHAN_BDC, SEC_CHAN_WKSTA
 
 __docformat__ = "restructuredText"
 
-
-class ProvisioningError(ValueError):
-  pass
-
-
 def find_setup_dir():
     """Find the setup directory used by provision."""
     dirname = os.path.dirname(__file__)
@@ -81,6 +76,11 @@ def find_setup_dir():
 
 DEFAULTSITE = "Default-First-Site-Name"
 
+# Exception classes
+
+class ProvisioningError(Exception):
+    """A generic provision error."""
+
 class InvalidNetbiosName(Exception):
     """A specified name was not a valid NetBIOS name."""
     def __init__(self, name):