op_fatal_error Struct Reference

#include <op_exception.h>

Inheritance diagram for op_fatal_error:
Inheritance graph
[legend]
Collaboration diagram for op_fatal_error:
Collaboration graph
[legend]

Public Member Functions

 op_fatal_error (std::string const &msg)
char const * what () const throw ()

Detailed Description

fatal exception, never catch it except at top level (likely main or gui). Intended to replace cerr << "blah"; exit(EXIT_FAILURE); by a throw op_fatal_error("blah") when returning error code is not an option

Definition at line 44 of file op_exception.h.


Constructor & Destructor Documentation

op_fatal_error::op_fatal_error ( std::string const &  msg  )  [explicit]

Member Function Documentation

char const * op_exception::what (  )  const throw () [inherited]

Definition at line 28 of file op_exception.cpp.

References op_exception::message.

Referenced by main(), and run_pp_tool().

Here is the caller graph for this function:


The documentation for this struct was generated from the following file:

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1