throw exception upon syntax error.