1 #ifndef _ATM_EXCEPTIONS_H
2 #define _ATM_EXCEPTIONS_H
30 #error "This is a C++ include file and cannot be used from plain C"
158 virtual const char*
file()
const throw() {
return file_m.c_str(); }
179 virtual const char*
what()
const throw() {
return what_m.c_str(); }
195 string formatMsg(
const char* file,
const char* routine,
int line,
const char* msg);
224 #define ATM_EXCEPTION_ARGS(msg) __FILE__, __PRETTY_FUNCTION__, __LINE__, msg
#define ATM_NAMESPACE_END
virtual const char * file() const
Returns the file name where the current error raised.
string file_m
The file where the exception raised.
string routine_m
The routine where the exception raised.
AtmException(const char *msg)
Constructor.
virtual const char * what() const
Returns a string describing the general cause of the current error.
virtual const char * message() const
Returns the message where the current error raised.
#define ATM_NAMESPACE_BEGIN
string msg_m
The message where the exception raised.
string formatMsg(const char *file, const char *routine, int line, const char *msg)
Output a message that conform to a given trace pattern.
virtual ~AtmException()
Destructor.
virtual int line() const
Returns the line number where the current error raised.
string what_m
The error message to be displayed.
Manage exceptions that raises in ATM.
int line_m
The line where the exception raised.
virtual const char * routine() const
Returns the routine name where the current error raised.
Defines nreal time structures used by the VLA table filler.