Pol  Revision:cb584c9
ExceptionParser.h
Go to the documentation of this file.
1 #ifndef CLIB_EXCEPTION_PARSER_H
2 #define CLIB_EXCEPTION_PARSER_H
3 
4 #include <string>
5 
6 namespace Pol
7 {
8 namespace Clib
9 {
11 {
12 public:
14  virtual ~ExceptionParser();
15 
20  static std::string getTrace();
21 
27  static void reportProgramAbort( const std::string& stackTrace, const std::string& reason );
28 
32  static void logAllStackTraces();
33 
37  static void initGlobalExceptionCatching();
38 
42  static void configureProgramAbortReportingSystem( bool active, std::string server,
43  std::string url, std::string reporter );
44 
48  static bool programAbortReporting();
49 
53  static void handleExceptionSignal( int signal );
54 
55 private:
57  static std::string m_programAbortReportingServer;
58  static std::string m_programAbortReportingUrl;
59  static std::string m_programAbortReportingReporter;
60  static std::string m_programStart;
61 };
62 }
63 } // namespaces
64 
65 #endif
static std::string m_programStart
static std::string m_programAbortReportingServer
static void configureProgramAbortReportingSystem(bool active, std::string server, std::string url, std::string reporter)
Configures the bug reporting system.
static std::string getTrace()
Returns a string containing the current stack trace.
static std::string m_programAbortReportingUrl
static void handleExceptionSignal(int signal)
Handles exceptions.
static void initGlobalExceptionCatching()
Initiates globally the exception catching (signal handlers for Linux)
static bool programAbortReporting()
Returns true if the bug reporting is active.
static void reportProgramAbort(const std::string &stackTrace, const std::string &reason)
Reports a program abort to the program devs.
static std::string m_programAbortReportingReporter
static void logAllStackTraces()
Logs stack traces of all threads to stdout and error output.
Definition: berror.cpp:12