public class ErrorFunctions extends Object
public static void error(String s) throws ExecutionException
s
- the message in the errorExecutionException
- alwayspublic static void asserT(String s, Boolean b) throws ExecutionException
assert("test that the parameter starts with the required prefix", startsWith(s,prefix))In the example above if the variable
s
starts with the string
contained in the variable prefix
then the execution of the BASIC
program goes on, otherwise the function causes BASIC runtime error.s
- b
- ExecutionException
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.