|
Nearly CC
An educational compiler skeleton
|
Exception type for general runtime errors that aren't associated with source code. More...
#include "exceptions.h"


Public Member Functions | |
| RuntimeError (const std::string &desc) | |
| Constuctor. More... | |
| RuntimeError (const RuntimeError &other) | |
| Copy constructor. More... | |
| bool | has_location () const |
| Check whether this exception has a valud source Location. More... | |
| const Location & | get_loc () const |
| Get the source Location. More... | |
Static Public Member Functions | |
| static void | raise (const char *fmt,...) RT_PRINTF_FORMAT |
| Throw a RuntimeError exception. More... | |
Exception type for general runtime errors that aren't associated with source code.
| RuntimeError::RuntimeError | ( | const std::string & | desc | ) |
Constuctor.
| desc | description of the error |
| RuntimeError::RuntimeError | ( | const RuntimeError & | other | ) |
Copy constructor.
| RuntimeError | object to copy from |
|
inherited |
|
inlineinherited |
|
static |
Throw a RuntimeError exception.
The description is generated from printf-style formatting.
| fmt | the format string |
| ... | argument values (corresponding to conversions in the format string) |