Better runtime errors for java