jakarta.security.jacc.PolicyContext.getContext(String) and jakarta.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory() are tedious to use, since they declare exceptions that most application code cannot reasonably handle. In practice they are always caught and retrown in some other exception.
To make those not so tedious to use, introduce variants that throw a runtime exception instead. Clients can still choose to call the variant with the checked exception.
jakarta.security.jacc.PolicyContext.getContext(String)andjakarta.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory()are tedious to use, since they declare exceptions that most application code cannot reasonably handle. In practice they are always caught and retrown in some other exception.To make those not so tedious to use, introduce variants that throw a runtime exception instead. Clients can still choose to call the variant with the checked exception.