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() <<
", ";
const string & getFormat() const
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...
This is the base of the Frobby exception hierarchy for exceptions that can occur due to expected erro...
void reportInternalError(const string &errorMsg)
void reportSyntaxError(const Scanner &scanner, const string &errorMsg)
void reportError(const string &errorMsg)
A replacement for stringstream.
unsigned int getLineNumber() const
Returns the number of newlines seen.