coin-Bcp
Public Member Functions | Static Public Attributes | List of all members
BCP_fatal_error Class Reference

Currently there isn't any error handling in BCP. More...

#include <BCP_error.hpp>

Public Member Functions

 BCP_fatal_error (const std::string &str)
 The constructor prints out the error message, flushes the stdout buffer and aborts execution. More...
 
 BCP_fatal_error (const char *format,...)
 
 ~BCP_fatal_error ()
 The destructor exists only because it must. More...
 

Static Public Attributes

static bool abort_on_error
 

Detailed Description

Currently there isn't any error handling in BCP.

When an object of this type is created, the string stored in the character array of the argument is printed out and execution is aborted with abort() (thus a core dump is created).

Definition at line 20 of file BCP_error.hpp.

Constructor & Destructor Documentation

BCP_fatal_error::BCP_fatal_error ( const std::string &  str)
inline

The constructor prints out the error message, flushes the stdout buffer and aborts execution.

Definition at line 34 of file BCP_error.hpp.

References abort_on_error.

BCP_fatal_error::BCP_fatal_error ( const char *  format,
  ... 
)
inline

Definition at line 40 of file BCP_error.hpp.

References abort_on_error.

BCP_fatal_error::~BCP_fatal_error ( )
inline

The destructor exists only because it must.

Definition at line 50 of file BCP_error.hpp.

Member Data Documentation

bool BCP_fatal_error::abort_on_error
static

Definition at line 22 of file BCP_error.hpp.

Referenced by BCP_fatal_error().


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