source: pyutilib.common/trunk/pyutilib/common/_exceptions.py @ 2328

Revision 2328, 1.5 KB checked in by wehart, 3 years ago (diff)

Applying reindent to standarize the format of PyUtilib? modules.

Line 
1#  _________________________________________________________________________
2#
3#  PyUtilib: A Python utility library.
4#  Copyright (c) 2008 Sandia Corporation.
5#  This software is distributed under the BSD License.
6#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7#  the U.S. Government retains certain rights in this software.
8#  _________________________________________________________________________
9
10import sys
11
12__all__ = ['ConfigurationError', 'ApplicationError', 'BadDebuggingValue']
13
14class WindowsError_def(Exception):
15    """
16    An exception used there is an error configuring a package.
17    """
18
19    def __init__(self,*args,**kargs):
20        Exception.__init__(self,*args,**kargs)      #pragma:nocover
21
22if (sys.platform[0:3] != "win"):
23    WindowsError = WindowsError_def
24else:
25    WindowsError=WindowsError
26__all__.append("WindowsError")
27
28
29class ConfigurationError(Exception):
30    """
31    An exception used there is an error configuring a package.
32    """
33
34    def __init__(self,*args,**kargs):
35        Exception.__init__(self,*args,**kargs)      #pragma:nocover
36
37
38class ApplicationError(Exception):
39    """
40    An exception used when an external application generates an error.
41    """
42
43    def __init__(self,*args,**kargs):
44        Exception.__init__(self,*args,**kargs)      #pragma:nocover
45
46
47class BadDebuggingValue(Exception):
48    """
49    An exception used when a bad debugging value is used.
50    """
51
52    def __init__(self,*args,**kargs):
53        Exception.__init__(self,*args,**kargs)      #pragma:nocover
Note: See TracBrowser for help on using the repository browser.