class XGError

Declared in <XError.h>

This is a standard error handling class which is used to specify how errors are to be handled.

Okay, here's the deal. At the top of the event loop, if my library catches the event, I will attempt to call the 'DoAlert' method, and then continue on the loop. This allows me to present a meaningful error message when the error passes up to me. All other exceptions that are punted to me that are not a descendant of the XGError class will present a "unknown error" exception

This is an abstract class; you must override the three public methods below in order to instantiate an actual class.


Construction/Destruction

XGError::XGError
XGError::~XGError

Element Access

XGError::DisplayError
XGError::GetLongError
XGError::GetShortError


Construction/Destruction

XGError::XGError

Usage: void XGEditText::ScrollInRange(void)

Construct this class. Does nothing.

XGError::~XGError

Usage: XGError::~XGError()

Destroy me. Does nothing.

Element Access

XGError::DisplayError

Usage: virtual void DisplayError(void)=0

This abstract method is called by YAAF when an exception of type XGError is caught.

XGError::GetLongError

Usage: virtual void DisplayError(void)=0 virtual void GetShortError(char*)=0 virtual void GetLongError(char*)=0

This abstract method returns the "long" error message. This is used to get a detailed description of the error.

XGError::GetShortError

Usage: virtual void DisplayError(void)=0 virtual void GetShortError(char*)=0

This abstract method returns the "short" error message. This is used to get the short error description.