HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
13 stars 3 forks source link

Improve exception message in JNXServiceFinder.findRequiredService #430

Open jesse-gallagher opened 3 months ago

jesse-gallagher commented 3 months ago

Currently, when a required service isn't found, it allows the underlying iterator throw NoSuchElementException. This is fine, since it's in the Javadoc and is still an exception, but it'd be better to wrap this or provide an alternate exception with a better message including the name of the class it failed to find.