CARMA C++
SystemException.h File Reference
#include <string>
#include <sstream>
#include <cerrno>
#include "carma/util/BaseException.h"

Go to the source code of this file.

Classes

class  carma::util::SystemException
 Exception class for managing system errors. More...
 

Namespaces

module  carma
 IDL for bima Rx Control, inherits from antenna::common::RxControl.
 
 carma::util
 Utility classes.
 

Macros

#define CARMA_SYSTEM_EXCEPTION(msg)
 Trick to get the file name and line number passed to the exception handler. More...
 

Detailed Description

This is the include file for Carma exception handling utilities.

Author
N. S. Amarnath

File containing declarations for the CARMA base exception class. Uses some tricks to ensure that file name and line number of location where exception is created is captured by the exception handler. Actual constructor uses three parameters, but most users will really use something that has only the first parameter. However, the macro definition at the end of the file will ensure that the file name and line number are inserted at the appropriate place.
WARNING The macro has to be disabled if for some reason the original definition of the constructor with three parameters is required. Macros may be disabled using the compiler option '-Umacro', or by using '#ifdef'/'#undef' combinations in your source file.

See Also
define BaseException(x)
carma::util::BaseException

Definition in file SystemException.h.

Macro Definition Documentation

#define CARMA_SYSTEM_EXCEPTION (   msg)

Trick to get the file name and line number passed to the exception handler.

Constructs an instance of carma::util::SystemException using argument msg as the message parameter to the constructor and automagically generating the system message, file and line number parameters to the constructor.

Definition at line 219 of file SystemException.h.