ErrorAndWarningReceiver Interface


public interface ErrorAndWarningReceiver extends java.lang.Object{
    // Methods
    public abstract void handleError(int error, String s, Viewer v);
    public abstract void handleTickError(int error, String s, Viewer v);
    public abstract void handleTickWarning(int error, String s, Viewer v);
    public abstract void handleWarning(int error, String s, Viewer v);
}

This interface, in conjunction with Viewer.registerErrorAndWarningReceiver, allows the application to register an object that will have its methods called when errors and warnings occur in the DirectAnimation system.

Methods

bullet1.gifhandleError

bullet1.gifhandleTickError

bullet1.gifhandleTickWarning

bullet1.gifhandleWarning


handleError

ErrorAndWarningReceiver Interface

Invoked when an error occurs outside of the invocation of a tick(). In addition, ticking is halted.

public abstract void handleError(
  int error,
  String s,
  Viewer v
  );

Parameters
error
The Win 32 error code. Consult a Win 32 reference for more information.
s
The error message.
v
The Viewer object on which the warning occurred.


handleTickError

ErrorAndWarningReceiver Interface

Invoked specifically for error messages incurred inside of a tick. In addition, ticking is halted.

public abstract void handleTickError(
  int error,
  String s,
  Viewer v
  );

Parameters
error
The Win 32 error code. Consult a Win 32 reference for more information.
s
The error message.
v
The Viewer object on which the error occurred.


handleTickWarning

ErrorAndWarningReceiver Interface

Invoked specifically for warning messages incurred inside of a tick().

public abstract void handleTickWarning(
  int error,
  String s,
  Viewer v
  );

Parameters
error
The Win 32 error code. Consult a Win 32 reference for more information.
s
The warning message.
v
The Viewer object on which the error occurred.


handleWarning

ErrorAndWarningReceiver Interface

Invoked when a warning occurs outside of the invocation of a tick().

public abstract void HandleWarning(
  int error,
  String s,
  Viewer v
  );

Parameters
error
The Win 32 error code. Consult a Win 32 reference for more information.
s
The warning message.
v
The Viewer object on which the error occurred.

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