All Packages Class Hierarchy This Package Previous Next Index
Class macondo.util.util
macondo.util.util
- public final class util
A class containing some useful functions
-
assert(boolean, String)
- Assertion.
-
debug(String)
- Prints a debugging message on standard output.
-
err(String)
- Prints an error message on standard error.
-
exc(Exception)
- Simple debugging code execute every time an exception
is raised.
assert
public static void assert(boolean expr,
String msg)
- Assertion. Tests a boolean expression and exits if
it is false.
- Parameters:
- expr - the boolean expression to test.
- msg - description of the assertion.
exc
public static void exc(Exception e)
- Simple debugging code execute every time an exception
is raised.
- Parameters:
- e - the exception.
debug
public static void debug(String s)
- Prints a debugging message on standard output.
- Parameters:
- s - the debugging message.
err
public static void err(String s)
- Prints an error message on standard error.
- Parameters:
- s - the error message.
All Packages Class Hierarchy This Package Previous Next Index