error Class Reference
[ExceptionExceptionEncoders]

#include <error.hpp>

List of all members.


Detailed Description

An implementation of a simple error.

this class is streamable and have two intersting function

const char* what() const throw(); const ::std::wstring & message() const throw();

Definition at line 141 of file error.hpp.

Public Types

typedef ::std::wostringstream stream_type
typedef ::std::wstring string_type

Public Member Functions

const char * what () const throw ()
 The most important function (return the error message).

const string_typemessage () const throw ()
 Get the error message.

constructor(s) & destructor
 error ()
 error (const string_type &str)
 error (const error &err)
 ~error () throw ()
constructor(s) & destructor
 error ()
 error (const::std::wstring &str)
 error (const error &err)
 ~error () throw ()

Protected Types

typedef XIMOL_NAMESPACE_PATH::error base_type


Member Typedef Documentation

typedef XIMOL_NAMESPACE_PATH::error error::base_type [protected]
 

Definition at line 125 of file error.hpp.

Referenced by error().

typedef ::std::wostringstream error::stream_type
 

Definition at line 146 of file error.hpp.

typedef ::std::wstring error::string_type
 

Definition at line 147 of file error.hpp.

Referenced by error(), and message().


Constructor & Destructor Documentation

XIMOL_ENCODERS_BEGIN_NAMESPACE error::error  ) 
 

Definition at line 72 of file error.cpp.

error::error const string_type str  )  [explicit]
 

Definition at line 79 of file error.cpp.

References string_type.

error::error const error err  ) 
 

Definition at line 87 of file error.cpp.

error::~error  )  throw ()
 

Definition at line 95 of file error.cpp.

error::error  ) 
 

error::error const::std::wstring &  str  )  [explicit]
 

Definition at line 77 of file error.cpp.

References base_type.

error::error const error err  ) 
 

error::~error  )  throw ()
 


Member Function Documentation

const error::string_type & error::message  )  const throw ()
 

Get the error message.

Definition at line 111 of file error.cpp.

References string_type.

const char * error::what  )  const throw ()
 

The most important function (return the error message).

Definition at line 102 of file error.cpp.


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


Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.