#include <XBase.h>
Inherited by XConfigRead.
Inheritance diagram for XBase:
Public Member Functions | |
XBase () | |
Use getWhat() as the result of what(). | |
XBase (const CString &msg) | |
Use msg as the result of what(). | |
virtual | ~XBase () |
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. |
This is the base class of most exception types.
Definition at line 24 of file XBase.h.
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().