class XGPostError

Declared in <XError.h>
Declared from XGError

Post 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

XGPostError::XGPostError

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,...);'

XGPostError::XGPostError

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.

XGPostError::XGPostError

Usage: XGPostError::XGPostError()

Three versions. The first is used by children classes which inherit from me

Public Methods

XGPostError::DisplayError

Usage: void XGPostError::DisplayError(void)

Do the alert message using the YAAF dialog code.

XGPostError::GetAlertResult

Usage: static bool GetAlertResult()

This is used internally by YAAF to determine if the cancel alert returns 'OK' or 'Cancel'

XGPostError::GetLongError

Usage: void XGPostError::GetLongError(char*dest)

Get the actual error message. This returns the long description of the error.

XGPostError::GetShortError

Usage: void XGPostError::GetShortError(char*dest)

Get the actual error message. This returns the short error message.

XGPostError::SetAlertType

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.

XGPostError::SetMessage

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.

XGPostError::SetMessage

Usage: void XGPostError::SetMessage(unsigned long msg,va_list vlist)

Set the message. This is the varargs variation of the above.