moved to Java 5. Exception introduced to better workflow