DirectX Media for Animation Java Reference Previous
Previous
Classes
Classes
Index
Index
Next
Next

ErrorAndWarningReceiver Interface

Methods

public interface ErrorAndWarningReceiver extends java.lang.Object{
    // Methods
    public abstract void handleError(String s, Viewer v);
    public abstract void handleTickError(String s, Viewer v);
    public abstract void handleTickWarning(String s, Viewer v);
    public abstract void handleWarning(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 Direct Animation system. (Both DXMApplet and DMXCanvas implement the Viewer interface. This means that Viewer.registerErrorAndWarningReceiver is available on these classes.


Methods


handleError

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

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

ParameterDescription
s The error message.
v The Viewer object on which the warning occurred.


handleTickError

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

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

ParameterDescription
s The error message.
v The Viewer object on which the error occurred.


handleTickWarning

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

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

ParameterDescription
s The warning message.
v The Viewer object on which the error occurred.


handleWarning

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

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

ParameterDescription
s The warning message.
v The Viewer object on which the error occurred.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.