|
Nearly CC
An educational compiler skeleton
|
Exception types. More...
#include <stdexcept>#include "location.h"

Go to the source code of this file.
Classes | |
| class | BaseException |
| Base type for exceptions indicating a syntax error,. More... | |
| class | RuntimeError |
| Exception type for general runtime errors that aren't associated with source code. More... | |
| class | SyntaxError |
| Exception type for lexical or syntax errors. More... | |
| class | SemanticError |
| Exception type for semantic errors. More... | |
Exception types.
Note that the preferred way to throw an exception is to invoke the static raise() member function in the exception class, since it will support printf-style formatting.