ExceptionUtil.java 404 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
package jcircus.newutil;

public class ExceptionUtil {
public static void throwException (String str) {
try {
throw new Exception (str);
} catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
}
public static void throwImplementationException (String methodname, Object o) {
ExceptionUtil.throwException(methodname + " :: Please implement an else if for " + o.toString());
}
}