New exception if invalid syntax in scanner