Microsoft SDK for Java

Debug.fail

Sets an assertion that always fails.

Syntax

public static void fail( String message )

Parameters

message

The message to display.

Remarks

Use the fail method to block code paths that should never be entered. This method will be omitted from your code unless you have the DEBUG conditional compile switch set.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.