external plugin client: use verificationexception for security exceptions

This commit is contained in:
Adam
2022-04-19 18:58:50 -04:00
parent ba1ab4cde2
commit eb0bbc6426
2 changed files with 6 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ public class ExternalPluginClient
}
catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e)
{
throw new RuntimeException(e);
throw new VerificationException(e);
}
}

View File

@@ -31,6 +31,11 @@ public class VerificationException extends Exception
super(message);
}
public VerificationException(Throwable cause)
{
super(cause);
}
public VerificationException(String message, Throwable cause)
{
super(message, cause);