Code formatting
Use ParseException instead of Exception
Use ParseException instead of Exception