MTK++ Latest version: 0.2.0

Public Member Functions | Protected Attributes | Friends
MTKpp::error Class Reference

Error object used in errorHandler. More...

#include <mtkpp/src/Log/error.h>

List of all members.

Public Member Functions

 error (const std::string &function="", const std::string &message="", const int type=4)
 error Constructor
virtual ~error ()
 error Destructor
std::string getFormattedMessage (void) const
 Get formatted error message.
std::string getFunction ()
 Get associate function for error.
std::string getMessage ()
 Get message for error.
int getType ()
 Get type of error.

Protected Attributes

std::string function
 function where error was called
std::string message
 message programmer used
int type

Friends

std::ostream & operator<< (std::ostream &os, const error &e)
 Output a formatted message string.

Detailed Description

Error object used in errorHandler.

Author:
Martin Peters
Version:
0.1
Date:
2007

Constructor & Destructor Documentation

MTKpp::error::error ( const std::string &  function = "",
const std::string &  message = "",
const int  type = 4 
)

error Constructor

Parameters:
functionFunction where message originates
messageError/warning message
typeError type

References message, and type.

MTKpp::error::~error ( ) [virtual]

error Destructor


Member Function Documentation

std::string MTKpp::error::getFormattedMessage ( void  ) const

Get formatted error message.

References message, and type.

std::string MTKpp::error::getFunction ( ) [inline]

Get associate function for error.

std::string MTKpp::error::getMessage ( ) [inline]

Get message for error.

References message.

int MTKpp::error::getType ( ) [inline]

Get type of error.

References type.

Referenced by MTKpp::errorHandler::throwError().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const error e 
) [friend]

Output a formatted message string.


Member Data Documentation

std::string MTKpp::error::function [protected]

function where error was called

std::string MTKpp::error::message [protected]

message programmer used

Referenced by error(), getFormattedMessage(), and getMessage().

int MTKpp::error::type [protected]

Referenced by error(), getFormattedMessage(), and getType().


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

Generated on Fri Dec 23 2011 09:28:55 for MTK++ by Doxygen 1.7.5.1