40 #include "InternalErr.h" 44 using std::ostringstream;
48 InternalErr::InternalErr() : Error()
50 _error_code = internal_error;
53 InternalErr::InternalErr(
const string &msg) : Error()
55 _error_code = internal_error;
57 _error_message +=
"An internal error was encountered:\n";
58 _error_message += msg +
"\n";
59 _error_message +=
"Please report this to support@opendap.org\n";
65 InternalErr::InternalErr(
const string &file,
const int &line,
const string &msg) : Error(msg, file, line)
67 _error_code = internal_error;
69 _error_message +=
"An internal error was encountered in " + file +
" at line ";
72 append_long_to_string(line, 10, _error_message);
73 _error_message +=
":\n";
74 _error_message += msg +
"\n";
75 _error_message +=
"Please report this to support@opendap.org\n";
78 InternalErr::InternalErr(
const InternalErr ©_from)
82 InternalErr::~InternalErr() throw()
86 InternalErr::operator=(
const InternalErr &rhs) {
87 if (
this == &rhs)
return *
this;
89 _error_code = rhs._error_code;
90 _error_message = rhs._error_message;
top level DAP object to house generic methods
bool OK() const
Is the Error object valid?
bool OK()
Is the InternalErr object valid?