Go to the documentation of this file.
25 err <<
"ERROR: " << errorMsg;
31 err <<
"INTERNAL ERROR: " << errorMsg <<
'\n';
36 (
const string& errorMsg,
const char* file,
unsigned int lineNumber) {
38 err << errorMsg <<
'\n'
39 <<
"The internal error occurred in file " << file
40 <<
" on line " << lineNumber <<
'.';
46 err <<
"SYNTAX ERROR (";
49 err <<
"format " << scanner.
getFormat() <<
", ";
This exception signals that a bug in Frobby has been detected.
This class offers an input interface which is more convenient and for some purposes more efficient th...
unsigned int getLineNumber() const
Returns the number of newlines seen.
void reportSyntaxError(const Scanner &scanner, const string &errorMsg)
This is the base of the Frobby exception hierarchy for exceptions that can occur due to expected erro...
void reportError(const string &errorMsg)
A replacement for stringstream.
void reportInternalError(const string &errorMsg)
const string & getFormat() const