-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move compiler execeptions to their package.
- Loading branch information
Showing
2 changed files
with
38 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Error(Exception): | ||
"""Some compile/link operation failed.""" | ||
|
||
|
||
class PreprocessError(Error): | ||
"""Failure to preprocess one or more C/C++ files.""" | ||
|
||
|
||
class CompileError(Error): | ||
"""Failure to compile one or more C/C++ source files.""" | ||
|
||
|
||
class LibError(Error): | ||
"""Failure to create a static library from one or more C/C++ object | ||
files.""" | ||
|
||
|
||
class LinkError(Error): | ||
"""Failure to link one or more C/C++ object files into an executable | ||
or shared library file.""" | ||
|
||
|
||
class UnknownFileType(Error): | ||
"""Attempt to process an unknown file type.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters