#include <stdexcept>
#include <string>
Go to the source code of this file.
◆ DEFINE_EXCEPTION
#define DEFINE_EXCEPTION |
( |
| NAME | ) |
|
Value:
public: \
}
This is the base of the Frobby exception hierarchy for exceptions that can occur due to expected erro...
Definition at line 63 of file error.h.
◆ INTERNAL_ERROR
#define INTERNAL_ERROR |
( |
| msg | ) |
|
Value: do { \
reportInternalError(msg, __FILE__, __LINE__); \
throw; \
} while (false)
Definition at line 42 of file error.h.
◆ INTERNAL_ERROR_UNIMPLEMENTED
#define INTERNAL_ERROR_UNIMPLEMENTED |
( |
| ) |
|
Value:
#define INTERNAL_ERROR(msg)
Definition at line 47 of file error.h.
◆ DEFINE_EXCEPTION() [1/3]
DEFINE_EXCEPTION |
( |
AmbiguousName | | ) |
|
◆ DEFINE_EXCEPTION() [2/3]
DEFINE_EXCEPTION |
( |
UnknownName | | ) |
|
◆ DEFINE_EXCEPTION() [3/3]
DEFINE_EXCEPTION |
( |
Unsupported | | ) |
|
◆ reportError()
void reportError |
( |
const string & | errorMsg | ) |
|
◆ reportInternalError() [1/2]
void reportInternalError |
( |
const string & | errorMsg | ) |
|
◆ reportInternalError() [2/2]
void reportInternalError |
( |
const string & | errorMsg, |
|
|
const char * | file, |
|
|
unsigned int | lineNumber ) |
◆ reportSyntaxError()
void reportSyntaxError |
( |
const Scanner & | scanner, |
|
|
const string & | errorMsg ) |
◆ throwError()
template<class Exception >
void throwError |
( |
const string & | errorMsg | ) |
|