DirectAnimation Animated Header --DXMException Class DirectAnimation Animated Header --DXMException Class* Microsoft DirectAnimation SDK
*Index  *Topic Contents
*Previous Topic: DXMEvent Class
*Next Topic: EndStyleBvr Class

DXMException Class


public class DXMException extends java.lang.RuntimeException {
    // Constructor
    public DXMException(int error, String string);

   // Methods
   public int    getErrorCode();
   public String getErrorString();
}

DXMException objects are thrown when any detected error occurs in the DirectAnimation system. They contain a string that should describe the source or the cause of the exception.


DXMException Constructor

DXMException Class

Constructs a DXMException object.

public DXMException(
  int error,
  String string
  );

Parameters
error
A Win32 error code. Consult a Win32 reference for more information.
string
Describes the cause or source of the exception.


DXMException Methods

bullet1.gifgetErrorCode

bullet1.gifgetErrorString


getErrorCode

DXMException Class

Extracts the Win32 error code. Consult a Win32 reference for more information.

public int getErrorCode;

Return Values

Returns the integer error code.


getErrorString

DXMException Class

Extracts the error string from the exception.

public String getErrorString( );

Return Values

Returns an error string of type java.lang.String.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page