I am extending LanguageTool in Java by making new rules for our own company texts. I am facing an issue where in around 0.09% percent of my whole text throws a RunTimeException while parsing through the text.
I want to find a solution for this, as the new developed rules work for most of the cases I want to ignore these error for few cases that it occurs but I am unable to catch this exception in a try and catch block.
I tried putting the code part of a rule that i create under this method
“public RuleMatch match(List sentences) throws IOException”
in a try and catch block but it didnt catch the error.
I want language tool to not check or ignore the rule which is creating runtime exception for a particular text. Does anyone know here how can i do it ??