C++ main module for emicrom Package  1.0
Public Member Functions | Friends | 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 tUInteger &line, const tString &function)
 
tString getMessage () const
 return the message of the exception More...
 
virtual tString toString () const
 return the message of the exception More...
 

Friends

ostream & operator<< (ostream &out, const CORE_Exception &obj)
 print the class object More...
 

Detailed Description

this class describes the exceptions raised for CORE package

Constructor & Destructor Documentation

◆ CORE_Exception() [1/4]

CORE_Exception::CORE_Exception ( )

build an exception

References CORE_Out::ERROR_MSG, CORE_Object::out(), and CORE_Out::print().

Here is the call graph for this function:

◆ CORE_Exception() [2/4]

CORE_Exception::CORE_Exception ( const tString package)

build an exception in package

References CORE_Out::ERROR_MSG, CORE_Object::out(), and CORE_Out::print().

Here is the call graph for this function:

◆ CORE_Exception() [3/4]

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_Out::ERROR_MSG, CORE_Object::out(), CORE_Out::print(), and tString.

Here is the call graph for this function:

◆ CORE_Exception() [4/4]

CORE_Exception::CORE_Exception ( const tString package,
const tString assertion,
const tString file,
const tUInteger 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_Out::ERROR_MSG, CORE_Object::out(), CORE_Out::print(), and tString.

Here is the call graph for this function:

Member Function Documentation

◆ getMessage()

tString CORE_Exception::getMessage ( ) const
inline

◆ toString()

virtual tString CORE_Exception::toString ( ) const
inlinevirtual

return the message of the exception

References getMessage().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  out,
const CORE_Exception obj 
)
friend

print the class object

Parameters
out: output into printing
objobject to print
Returns
the output

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