Throw exception on syntax error.