Right now, if we check an IP which does not exist in the file an IOException is thrown. This is not ideal in multiple ways
It is not great design to program by Exception.
It is much less performant than returning a null or Optional result.
java.io.IOException: Invalid or nonexistent IP address specified for lookup. (EID: 12)
at com.ipqualityscore.JavaIPQSDBReader.FileReader.Fetch(FileReader.java:83)
Right now, if we check an IP which does not exist in the file an IOException is thrown. This is not ideal in multiple ways
Optional
result.