#include <InternalErr.h>
Inheritance diagram for InternalErr:
Public Member Functions | |
ErrorCode | get_error_code () const |
Get the error code. | |
string | get_error_message () const |
Get the error message. | |
bool | OK () const |
Class invariant. | |
bool | OK () |
Is the InternalErr object valid? | |
bool | parse (FILE *fp) |
Deserialize object from the wire. | |
void | print (FILE *out) const |
Print the Error object on the given output stream. | |
void | set_error_code (ErrorCode ec=undefined_error) |
Set the error code. | |
void | set_error_message (string msg="") |
Set the error message. | |
virtual | ~InternalErr () |
InternalErr (const InternalErr ©_from) | |
InternalErr () | |
InternalErr (const string &file, const int &line, const string &msg) | |
InternalErr (const string &msg) | |
Protected Attributes | |
ErrorCode | _error_code |
string | _error_message |
char * | _program |
deprecated; don't use | |
ProgramType | _program_type |
deprecated; don't use |
NB: This class Adds some text to the message and might, in the future, hold information not also held in Error. However, all Error objects thrown on the server-side of libdap that cannot be resolved (and that's all of them for now, 5/3/99 jhrg) will be sent to the client-side using Error objects. That is, the information recorded in an InternalErr object will be sent by calling the print(...)
mfunc of Error.
Definition at line 63 of file InternalErr.h.
|
These constructors always set the error code to Note that there is no way to specify an error correction program for an internal error. Definition at line 57 of file InternalErr.cc. |
|
Definition at line 69 of file InternalErr.cc. References append_long_to_string(). |
Here is the call graph for this function:
|
Definition at line 52 of file InternalErr.cc. |
|
Definition at line 92 of file InternalErr.cc. |
|
Definition at line 96 of file InternalErr.cc. |
|
Get the ErrorCode for this instance. Definition at line 262 of file Error.cc. References Error::OK(). |
Here is the call graph for this function:
|
Return the current error message. Definition at line 299 of file Error.cc. References Error::_error_message, and Error::OK(). |
Here is the call graph for this function:
|
Use this function to determine whether an Error object is valid. To be a valid, an Error object must either be: 1) empty or contain a message and a code.
Definition at line 152 of file Error.cc. References Error::_error_code, Error::_error_message, and DBG. Referenced by Error::get_error_code(), Error::get_error_message(), OK(), Error::operator=(), Error::parse(), and Error::print(). |
|
Definition at line 103 of file InternalErr.cc. References Error::OK(). |
Here is the call graph for this function:
|
Given an input stream (FILE *)
Definition at line 175 of file Error.cc. References Error_buffer(), Error_delete_buffer(), Error_switch_to_buffer(), Errorparse(), Error::OK(), and parser_arg::status(). Referenced by Connect::request_das(), Connect::request_das_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), and Connect::request_ddx_url(). |
Here is the call graph for this function:
|
Creates a printable representation of the Error object. It is suitable for framing, and also for printing and sending over a network. The printed representation produced by this function can be parsed by the parse() member function. Thus parse and print form a symmetrical pair that can be used to send and receive an Error object over the network in a MIME document.
Definition at line 217 of file Error.cc. References Error::_error_code, Error::_error_message, Error::_program, Error::_program_type, and Error::OK(). Referenced by AlarmHandler::handle_signal(). |
Here is the call graph for this function:
|
Set the ErrorCode. If the current error message has not been set, use ec to set the error message. The resulting error message string is the same as the ErrorCode name. If ec is not within the range of values for an OPeNDAP ErrorCode, the error message is left unchanged.
Definition at line 275 of file Error.cc. References Error::_error_code, Error::_error_message, and undefined_error. |
|
Set the error message. Definition at line 308 of file Error.cc. References Error::_error_message. |
|
Definition at line 98 of file Error.h. Referenced by Error::OK(), Error::operator=(), Error::print(), and Error::set_error_code(). |
|
Definition at line 99 of file Error.h. Referenced by Error::get_error_message(), Error::OK(), Error::operator=(), Error::print(), Error::set_error_code(), and Error::set_error_message(). |
|
Definition at line 101 of file Error.h. Referenced by Error::Error(), Error::operator=(), Error::print(), and Error::~Error(). |
|
Definition at line 100 of file Error.h. Referenced by Error::operator=(), and Error::print(). |