LaException Class Reference

General exception class in Lapack++. More...

#include <laexcp.h>

Inheritance diagram for LaException:

List of all members.

Public Member Functions

 LaException ()
 LaException (const char *where, const char *what)
 LaException (const char *assertion, const char *file, unsigned int line, const char *function)

Static Public Member Functions

static void enablePrint (bool enable)

Detailed Description

General exception class in Lapack++.

General exception class for when an exceptions occurs inside Lapack++.


Constructor & Destructor Documentation

LaException::LaException (  ) 

Empty constructor.

LaException::LaException ( const char *  where,
const char *  what 
)

Constructor with text information. The text can be retrieved by the what() method, i.e.

  LaException e("myFunction()", "some error"); 
  std::cout << e.what();

If the static flag LaException::enablePrint() is enabled, then this constructor also writes the given text to stderr.

LaException::LaException ( const char *  assertion,
const char *  file,
unsigned int  line,
const char *  function 
)

Constructor with more text information, similar to the assert(3) macro.

If the static flag LaException::enablePrint() is enabled, then this constructor also writes the given text to stderr.


Member Function Documentation

static void LaException::enablePrint ( bool  enable  )  [static]

Static (i.e. library-wide) flag whether any new LaException should also print its message to stderr. Disabled by default.

Note:
Other static (i.e. library-wide) preferences are stored in the LaPreferences class. This flag is stored here because it concerns only this LaException class.


Generated on Sat Jul 14 11:40:37 2007 for Lapack++ by  doxygen 1.5.0