C++ main module for gpm Package  1.0
Public Member Functions | Static Public Member Functions | List of all members
CORE_Exception Class Reference

this class describes the exceptions raised for CORE package More...

#include <CORE_Exception.h>

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

Public Member Functions

 CORE_Exception ()
 build an exception More...
 
 CORE_Exception (const tString &package)
 build an exception in package More...
 
 CORE_Exception (const tString &package, const tString &where, const tString &what)
 
 CORE_Exception (const tString &package, const tString &assertion, const tString &file, const unsigned int &line, const tString &function)
 
tString getMessage () const
 return the message of the exception More...
 

Static Public Member Functions

static void enablePrint (const tBoolean &enable)
 

Detailed Description

this class describes the exceptions raised for CORE package

Constructor & Destructor Documentation

CORE_Exception::CORE_Exception ( )

build an exception

CORE_Exception::CORE_Exception ( const tString package)

build an exception in package

CORE_Exception::CORE_Exception ( const tString package,
const tString where,
const tString 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.

References CORE_Object::outputPrint(), and tString.

Here is the call graph for this function:

CORE_Exception::CORE_Exception ( const tString package,
const tString assertion,
const tString file,
const unsigned int &  line,
const tString 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.

References CORE_Object::outputPrint(), and tString.

Here is the call graph for this function:

Member Function Documentation

static void CORE_Exception::enablePrint ( const tBoolean enable)
inlinestatic

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.
tString CORE_Exception::getMessage ( ) const
inline

return the message of the exception

References tString.

Referenced by GPM_ModelFunction::isMappingValid(), GPM_ModelFunction::updatePatternGraphStates(), GPM_ModelFunction::updatePTEdgesStates(), and GPM_ModelFunction::updateTransformerGraphStates().

Here is the caller graph for this function:


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