#include <CHMerrorClass.h>
This is the only exception that should be thrown by the Chameleon code. This exception class may inherit from other exception classes depending on the environment. For MFC for instance, the CHMerror class is defined to inherit from the CException class. For other compilers the CHMerror class is just a stand-alone class.
Public Member Functions | |
const long | Code () const |
Get the error code. | |
unsigned int | CountOfParameter () const |
Get the number of parameters. | |
CHMchar * | Description () const |
Get the description of the error. | |
CHMstring | Dump () const |
Output the error information to a string. | |
CHMboolean | HasParameter (const CHMchar *pKey) const |
Check whether a parameter with this name is present. | |
const char * | Parameter (const CHMchar *pKey) const |
Get the parameter referenced by the key pKey . | |
const char * | ParameterName (unsigned int Index) const |
Get the name of a parameter by sequence number. |
|
Get the error code.
|
|
Get the number of parameters.
|
|
Get the description of the error.
|
|
Output the error information to a string. This is useful for diagnostics. |
|
Check whether a parameter with this name is present.
|
|
Get the parameter referenced by the key
|
|
Get the name of a parameter by sequence number.
|