DisplayException
DisplayException Methods
DisplayException() | Constructor for the DisplayException class |
ErrorId() | Error Id which caused the exception (constants listed below) |
Display() | Returns the Display where the error occured (local or remote) |
DisplayException Constants
Constant Data Item | Data Type | Value |
DisplayException.BadWindow | int | 1 |
DisplayException.ClosedWindow | int | 2 |
DisplayException.BadColor | int | 3 |
DisplayException.BadPen | int | 4 |
DisplayException.BadFont | int | 5 |
DisplayException.BadBitMap | int | 6 |
DisplayException.BadVersion | int | 7 |
Derived Classes
None
See Also
Class Hierarchy, Thread, Window, WindowParentException
public method DisplayException(int ErrorId, Display TargetDisplay)
Parameters
ErrorId
Error Id value which caused the exception to be fired
TargetDisplay
Display reference where the resource was trying to be used
Return Value
None
Description
Constructor for the DisplayException class using a reference to the corresponding Display object where the resource is being used. The Error Id and the targeted Display are passed into the constructor. The Error Id value will correspond to one of the predefined constants for this class, which are defined above. This class is instantiated automatically by the Aztec Virtual Machine to handle the applicable error condition.
DisplayException Class
public method<int> ErrorId()
Parameters
None
Return Value
Error Id value that initiated the exception
Description
This method returns the Error Id value corresponding to the type of offense that caused the exception to be fired. The value will correspond to one of the Error Id constants for this class that are defined above.
DisplayException Class
public method<Display> Display()
Parameters
None
Return Value
Display being targeted
Description
This method returns a reference to the Display object that is being targeted by the offending resource.
DisplayException Class