Exception Class Reference

#include <exception.h>

Collaboration diagram for Exception:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Exception (std::string error)
 Exception (const char *format,...)
 ~Exception ()
std::string getError ()

Protected Attributes

std::string m_error

Detailed Description

Definition at line 9 of file exception.h.


Constructor & Destructor Documentation

Exception::Exception ( std::string  error  )  [inline]

Definition at line 16 of file exception.h.

00016 {m_error = error;}

Exception::Exception ( const char *  format,
  ... 
)

Definition at line 6 of file exception.cpp.

00007 {
00008   char str[2000];
00009   va_list vl;
00010   va_start(vl,format);
00011   vsprintf(str,format,vl);
00012   va_end(vl);
00013   m_error = str;
00014 
00015   if (ptrace(PTRACE_TRACEME, 0, 1, 0) < 0) {
00016     abort();
00017   }
00018 
00019 }

Exception::~Exception (  )  [inline]

Definition at line 18 of file exception.h.

00018 {}


Member Function Documentation

std::string Exception::getError (  )  [inline]

Definition at line 19 of file exception.h.

00019 {return m_error;}


Member Data Documentation

std::string Exception::m_error [protected]

Definition at line 14 of file exception.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:03 2012 for CO2INJECTION by  doxygen 1.6.3