39#include "InternalErr.h"
43using std::ostringstream;
47InternalErr::InternalErr() :
Error() { _error_code = internal_error; }
49InternalErr::InternalErr(
const string &msg) : Error() {
50 _error_code = internal_error;
52 _error_message +=
"An internal error was encountered:\n";
53 _error_message += msg +
"\n";
54 _error_message +=
"Please report this to support@opendap.org\n";
59InternalErr::InternalErr(
const string &file,
const int &line,
const string &msg) : Error(msg, file, line) {
60 _error_code = internal_error;
62 _error_message +=
"An internal error was encountered in " + file +
" at line ";
65 append_long_to_string(line, 10, _error_message);
66 _error_message +=
":\n";
67 _error_message += msg +
"\n";
68 _error_message +=
"Please report this to support@opendap.org\n";
71InternalErr::InternalErr(
const InternalErr ©_from) noexcept : Error(copy_from) {}
73InternalErr::~InternalErr() noexcept {}
75InternalErr &InternalErr::operator=(
const InternalErr &rhs) {
79 _error_code = rhs._error_code;
80 _error_message = rhs._error_message;
A class for error processing.
bool OK() const
Is the Error object valid?
bool OK()
Is the InternalErr object valid?
top level DAP object to house generic methods