Fixed exception message per recommendation.
This commit is contained in:
lhazlewood 2023-09-16 18:49:43 -07:00 committed by GitHub
parent a2b65763e9
commit a920163be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ public final class UnavailableImplementationException extends RuntimeException {
private static final String DEFAULT_NOT_FOUND_MESSAGE = "Unable to find an implementation for %s using " + private static final String DEFAULT_NOT_FOUND_MESSAGE = "Unable to find an implementation for %s using " +
"java.util.ServiceLoader. Ensure you include a backing implementation .jar in the classpath, " + "java.util.ServiceLoader. Ensure you include a backing implementation .jar in the classpath, " +
"for example jjwt-impl.jar, or your own .jar for custom implementations."; "for example jjwt-jackson.jar, jjwt-gson.jar or jjwt-orgjson.jar, or your own .jar for " +
"custom implementations.";
UnavailableImplementationException(final Class<?> klass) { UnavailableImplementationException(final Class<?> klass) {
super(String.format(DEFAULT_NOT_FOUND_MESSAGE, klass)); super(String.format(DEFAULT_NOT_FOUND_MESSAGE, klass));