tobicore  7.0.0
 All Classes Functions Variables Typedefs Enumerator Friends Groups Pages
TCException Class Reference

Exception class. More...

#include <tobicore/TCException.hpp>

+ Collaboration diagram for TCException:

Public Member Functions

 TCException (std::string info, std::string caller="undef")
 Constructor.
virtual ~TCException (void)
 Destructor.
virtual std::string GetCaller (void) const
 Caller getter.
virtual std::string GetInfo (void) const
 Message getter.
bool operator== (const TCException &right)
 Operator == overload.
bool operator!= (const TCException &right)
 Operator != overload.

Friends

std::ostream & operator<< (std::ostream &output, const TCException &)
 Operator << overload.
std::ostream & operator<< (std::ostream &output, const TCException *)
 Operator << overload.

Detailed Description

Exception class.

Examples:
icclass.cpp, icclassifier.cpp, and icexample.cpp.

Definition at line 28 of file TCException.hpp.

Constructor & Destructor Documentation

TCException::TCException ( std::string  info,
std::string  caller = "undef" 
)

Constructor.

Parameters
infoException message
callerMethod that raised the exception (default: "undef")

Definition at line 24 of file TCException.cpp.

Member Function Documentation

std::string TCException::GetCaller ( void  ) const
virtual

Caller getter.

Returns
Caller

Definition at line 32 of file TCException.cpp.

std::string TCException::GetInfo ( void  ) const
virtual

Message getter.

Returns
Message

Definition at line 36 of file TCException.cpp.

+ Here is the caller graph for this function:

bool TCException::operator!= ( const TCException right)

Operator != overload.

To compare two different exceptions

Returns
True if the exception message are the same

Definition at line 56 of file TCException.cpp.

+ Here is the call graph for this function:

bool TCException::operator== ( const TCException right)

Operator == overload.

To compare two different exceptions

Returns
True if the exception message are different

Definition at line 52 of file TCException.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const TCException obj 
)
friend

Operator << overload.

Returns
std::ostream

Definition at line 40 of file TCException.cpp.

std::ostream& operator<< ( std::ostream &  output,
const TCException obj 
)
friend

Operator << overload.

Returns
std::ostream

Definition at line 46 of file TCException.cpp.


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