Declared in <XError.h>
Declared from XGErrorPost an error message. This is the mechanism that YAAF uses to post errors.
NOTE: The XGAlertType parameter in the constructor is used with the Caution() and Warning() routines (below).
Construction/Destruction
XGPostError::XGPostError
XGPostError::XGPostError
XGPostError::XGPostError
Public Methods
XGPostError::DisplayError
XGPostError::GetAlertResult
XGPostError::GetLongError
XGPostError::GetShortError
XGPostError::SetAlertType
XGPostError::SetMessage
XGPostError::SetMessage
Construction/Destruction
Usage: XGPostError::XGPostError(unsigned long msg,...)
Second version. This version is used when the error is created by most applications. To use this, to throw an error, you would write 'throw XGPostError(KErrorID,args,...);'
Usage: XGPostError::XGPostError(unsigned long msg,va_list vlist)
Third version; this is the varargs version of the second constructor, and is used internally by YAAF.
Usage: XGPostError::XGPostError()
Three versions. The first is used by children classes which inherit from me
Public Methods
Usage: void XGPostError::DisplayError(void)
Do the alert message using the YAAF dialog code.
Usage: static bool GetAlertResult()
This is used internally by YAAF to determine if the cancel alert returns 'OK' or 'Cancel'
Usage: void XGPostError::GetLongError(char*dest)
Get the actual error message. This returns the long description of the error.
Usage: void XGPostError::GetShortError(char*dest)
Get the actual error message. This returns the short error message.
Usage: void SetAlertType(XGAlertType a)
This is used internally by YAAF to set the type of error alert that is thrown up when DisplayError is called.
Usage: void XGPostError::SetMessage(unsigned long msg,...)
Set the message. If no message is specified by the constructor, this is used to initialize the message. This is used by the constructor of classes which descend from the XGPostError class.
Usage: void XGPostError::SetMessage(unsigned long msg,va_list vlist)
Set the message. This is the varargs variation of the above.