external plugin client: use verificationexception for security exceptions
This commit is contained in:
@@ -111,7 +111,7 @@ public class ExternalPluginClient
|
|||||||
}
|
}
|
||||||
catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e)
|
catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e)
|
||||||
{
|
{
|
||||||
throw new RuntimeException(e);
|
throw new VerificationException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ public class VerificationException extends Exception
|
|||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public VerificationException(Throwable cause)
|
||||||
|
{
|
||||||
|
super(cause);
|
||||||
|
}
|
||||||
|
|
||||||
public VerificationException(String message, Throwable cause)
|
public VerificationException(String message, Throwable cause)
|
||||||
{
|
{
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
|
|||||||
Reference in New Issue
Block a user