FileDocCategorySizeDatePackage
ErrorMessages.javaAPI DocExample801Tue Dec 12 18:58:44 GMT 2000bingo.shared

ErrorMessages

public class ErrorMessages extends Object

Fields Summary
public static boolean
DEBUG
Constructors Summary
Methods Summary
public static voiderror(java.lang.String message)


         
	//XXX Do we really want to print non-fatal messages to stderr?
	System.err.print("BINGO: ");
	System.err.println(message);
    
public static voiderror(java.lang.String message, java.lang.Exception e)

	if (DEBUG) {
	    if (e != null) {
	        e.printStackTrace();
	    }
	}
	//XXX Do we really want to print non-fatal messages to stderr?
	System.err.print("BINGO: ");
	System.err.println(message);
    
public static voidfatalError(java.lang.String message, java.lang.Exception e)

	if (DEBUG) {
	    if (e != null) {
	        e.printStackTrace();
	    }
	}
	System.err.print("BINGO: ");
	System.err.println(message);
	System.err.println("Exiting.....");
	System.exit(-1);