27 #ifndef NIDAS_UTIL_PARSEEXCEPTION_H
28 #define NIDAS_UTIL_PARSEEXCEPTION_H
34 namespace nidas {
namespace util {
45 const std::string& msg,
int lineno):
54 const std::string& msg):
55 Exception(
"ParseException", what +
": " + msg) {}
72 std::ostringstream os;
ParseException(const std::string &what, const std::string &msg)
Create a ParseException, passing a name of what you're trying to parse, and a message.
Definition: ParseException.h:53
ParseException(const std::string &message)
Create an ParseException, passing a message.
Definition: ParseException.h:60
Definition: Exception.h:35
Exception * clone() const
clone myself (a "virtual" constructor).
Definition: ParseException.h:66
static std::string linenoToString(int lineno)
Definition: ParseException.h:71
virtual const char * what() const
Definition: Exception.h:98
ParseException(const std::string &what, const std::string &msg, int lineno)
Create a ParseException, passing a name of what you're trying to parse, a message, and the line number of the document.
Definition: ParseException.h:44
Definition: ParseException.h:36