Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

XBase Class Reference

Exception base class. More...

#include <XBase.h>

Inherited by XConfigRead.

Inheritance diagram for XBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 XBase ()
 Use getWhat() as the result of what().
 XBase (const CString &msg)
 Use msg as the result of what().
virtual const char * what () const
 Reason for exception.

Protected Member Functions

virtual CString getWhat () const =0 throw ()
 Get a human readable string describing the exception.
virtual CString format (const char *id, const char *defaultFormat,...) const throw ()
 Format a string.

Detailed Description

Exception base class.

This is the base class of most exception types.

Definition at line 24 of file XBase.h.


Member Function Documentation

CString XBase::format const char *  id,
const char *  defaultFormat,
  ...
const throw () [protected, virtual]
 

Format a string.

Looks up a message format using id, using defaultFormat if no format can be found, then replaces positional parameters in the format string and returns the result.

Definition at line 51 of file XBase.cpp.

References CStringUtil::vformat().

Referenced by XConfigRead::getWhat().


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:21:44 2009 for synergy-plus by  doxygen 1.3.9.1