Debug.fail

Overview | Methods | This Package | All Packages

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.