Some methods of keycloak wrap internal exceptions with the general Exception. This make it hard to handle separate exceptions from keycloak. This PR modifies the exception handling of JweAlgorithmProviderFuzzer by replacing the capturing of general Exception. The new approach capture certain known exception and throw the other exception out. This could be more precise in finding unexpected exceptions.
Some methods of keycloak wrap internal exceptions with the general Exception. This make it hard to handle separate exceptions from keycloak. This PR modifies the exception handling of JweAlgorithmProviderFuzzer by replacing the capturing of general Exception. The new approach capture certain known exception and throw the other exception out. This could be more precise in finding unexpected exceptions.