}
public static ManchesterSyntaxFrameParseError getParseError(ParserException e) {
List<EntityType<?>> expectedEntityTypes = getExpectedEntityTypes(e);
String message = e.getMessage().replace(ManchesterOWLSyntaxTokenizer.EOF, "end of description");
return new ManchesterSyntaxFrameParseError(message,
e.getColumnNumber(),
e.getLineNumber(),
e.getCurrentToken(),
expectedEntityTypes);
}