My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Exception.h File Reference
#include <iostream>
#include <sstream>
#include <string>
#include "gcp/util/common/ErrHandler.h"
#include "gcp/util/common/FunctionName.h"
#include "gcp/util/common/Directives.h"
#include "gcp/util/common/IoLock.h"
#include "gcp/util/common/Logger.h"

Go to the source code of this file.

Classes

class  gcp::util::Exception
 

Macros

#define Error(x)   gcp::util::Exception((x), __FILE__, __LINE__, true)
 
#define ErrorNoReport(x)   gcp::util::Exception((x), __FILE__, __LINE__, false)
 
#define ErrorDef(x, y)   gcp::util::Exception (x)((y), __FILE__, __LINE__, true)
 
#define ThrowError(text)
 
#define ThrowSimpleError(text)
 
#define ThrowSysError(text)
 
#define ReportError(text)
 
#define ReportSimpleError(text)
 
#define ReportSysError(text)
 
#define ReportSimpleSysError(text)
 
#define ReportMessage(text)
 
#define LogMessage(error, text)
 
#define COUT(statement)
 
#define CTOUT(statement)
 
#define CERR(statement)
 
#define CTERR(statement)
 

Detailed Description

Tagged: Fri Nov 14 12:39:33 UTC 2003

Author
Erik Leitch

Macro Definition Documentation

#define CERR (   statement)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << statement << std::endl; \
}
static void printToStderr(std::string message)
Definition: Logger.cc:246
#define COUT (   statement)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << statement << std::endl; \
}
static void printToStdout(std::string message)
Definition: Logger.cc:233
#define CTERR (   statement)
Value:
{\
gcp::util::TimeVal _macroTimeVal;\
_macroTimeVal.setToCurrentTime();\
std::ostringstream _macroOs; \
_macroOs << _macroTimeVal << ": " << statement << std::endl; \
}
static void printToStderr(std::string message)
Definition: Logger.cc:246
#define CTOUT (   statement)
Value:
{\
gcp::util::TimeVal _macroTimeVal;\
_macroTimeVal.setToCurrentTime();\
std::ostringstream _macroOs; \
_macroOs << _macroTimeVal << ": " << statement << std::endl; \
}
static void printToStdout(std::string message)
Definition: Logger.cc:233
#define LogMessage (   error,
  text 
)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::log(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
false, true, false);\
}
#define ReportError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, false, false);\
}
#define ReportMessage (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
false, true, false);\
}
#define ReportSimpleError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, true, false);\
}
#define ReportSimpleSysError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, true, true);\
}
#define ReportSysError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, false, true);\
}
#define ThrowError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, false, false);\
}
#define ThrowSimpleError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, true, false);\
}
#define ThrowSysError (   text)
Value:
{\
std::ostringstream _macroOs; \
_macroOs << text;\
gcp::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, \
gcp::util::FunctionName::noArgs(__PRETTY_FUNCTION__).c_str(), \
true, false, true);\
}