|
5 | 5 | including :exc:`SystemExit`.
|
6 | 6 | """
|
7 | 7 |
|
| 8 | +# compiler exceptions aliased for compatibility |
| 9 | +from .compilers.C.errors import ( |
| 10 | + CompileError, # noqa: F401 |
| 11 | + LibError, # noqa: F401 |
| 12 | + LinkError, # noqa: F401 |
| 13 | + PreprocessError, # noqa: F401 |
| 14 | +) |
| 15 | +from .compilers.C.errors import ( |
| 16 | + Error as CCompilerError, # noqa: F401 |
| 17 | +) |
| 18 | +from .compilers.C.errors import ( |
| 19 | + UnknownFileType as UnknownFileError, # noqa: F401 |
| 20 | +) |
| 21 | + |
8 | 22 |
|
9 | 23 | class DistutilsError(Exception):
|
10 | 24 | """The root of all Distutils evil."""
|
@@ -95,30 +109,3 @@ class DistutilsTemplateError(DistutilsError):
|
95 | 109 |
|
96 | 110 | class DistutilsByteCompileError(DistutilsError):
|
97 | 111 | """Byte compile error."""
|
98 |
| - |
99 |
| - |
100 |
| -# Exception classes used by the CCompiler implementation classes |
101 |
| -class CCompilerError(Exception): |
102 |
| - """Some compile/link operation failed.""" |
103 |
| - |
104 |
| - |
105 |
| -class PreprocessError(CCompilerError): |
106 |
| - """Failure to preprocess one or more C/C++ files.""" |
107 |
| - |
108 |
| - |
109 |
| -class CompileError(CCompilerError): |
110 |
| - """Failure to compile one or more C/C++ source files.""" |
111 |
| - |
112 |
| - |
113 |
| -class LibError(CCompilerError): |
114 |
| - """Failure to create a static library from one or more C/C++ object |
115 |
| - files.""" |
116 |
| - |
117 |
| - |
118 |
| -class LinkError(CCompilerError): |
119 |
| - """Failure to link one or more C/C++ object files into an executable |
120 |
| - or shared library file.""" |
121 |
| - |
122 |
| - |
123 |
| -class UnknownFileError(CCompilerError): |
124 |
| - """Attempt to process an unknown file type.""" |
0 commit comments