Nearly CC
An educational compiler skeleton
Classes | Macros
exceptions.h File Reference

Exception types. More...

#include <stdexcept>
#include "location.h"
Include dependency graph for exceptions.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.