String foo = null;
foo.toString();
int errorCode = Integer.parseInt(request.getParameter("errorCode"));
switch (errorCode) {
case -1:
throw new ErrorCodeException(errorCode, new Object[] {"6474-8484","wangdoodle"});
case 100:
throw new ErrorCodeException(errorCode, new Object[] {"gburdell"});
case 110:
throw new ErrorCodeException(errorCode, new Object[] {new Integer(75)});
default:
throw new ErrorCodeException(-99, new Object[]{}, "unknown error code");
}