- return Optional.empty();
- } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {
- logger.error("Unable to load key", e);
- throw new RuntimeException("Unable to load key", e);
+ return empty();
+ } catch (Exception e) {
+ throw buildFatalFailure(logger, "Unable to load key", e);