#include <dberror.h>
Static Public Methods | |
void | FindLastErrorFromDb (void) |
Ask the interface layer what its last error was. More... | |
void | SetLastError (const LookString &theMessage, long theNumber) |
Set the error message/number. More... | |
void | AppendErrorMessage (const LookString &theMessage) |
Append an error message to an existing one. More... | |
LookString | GetLastError (long &theErrorNumber) |
Get the last error message and number. More... | |
LookString | GetLastErrorString (void) |
Get the last error message. More... | |
long | GetLastErrorNumber (void) |
Get the last error number. More... | |
Static Protected Attributes | |
long | itsLastErrorNo |
LookString | itsLastErrorMessage |
This class stores an error message and error number. When something goes wrong, ask it to tell you what it was. Error numbers are nominally reserved in looktypes.h.
|
Append an error message to an existing one. If the error message is in many parts you may wish to append messages.
|
|
Ask the interface layer what its last error was. If a db interface layer call fails (eg DbConnect), this will query the interface layer for an appropriate error message and number. If you never touch the interface layer you don't need this call
|
|
Get the last error message and number. Get the last error message and number.
|
|
Get the last error number. Get the last error number.
|
|
Get the last error message. Get the last error message.
|
|
Set the error message/number. Set the error message/number for your own errors, eg ones in liblookdb.
|