MCPcopy Create free account
hub / github.com/GDATASoftwareAG/vaas / throwInnerException

Method throwInnerException

java/src/main/java/de/gdata/vaas/Vaas.java:110–118  ·  view source on GitHub ↗
(Exception e)

Source from the content-addressed store, hash-verified

108 }
109
110 private static void throwInnerException(Exception e) throws VaasAuthenticationException, VaasClientException, VaasServerException {
111 var inner = e.getCause();
112 if (inner instanceof VaasAuthenticationException) {
113 throw new VaasAuthenticationException(e.getMessage(), inner);
114 } else if (inner instanceof VaasClientException) {
115 throw new VaasClientException(e.getMessage(), inner);
116 }
117 throw new VaasServerException(e.getMessage(), inner);
118 }
119
120 private CompletableFuture<VaasVerdict> sendUrlWithRetry(HttpClient httpClient, URI uri, String vaasRequestId) {
121 return createHttpRequestBuilderWithHeaders(uri, vaasRequestId).thenCompose(request ->

Callers 4

forSha256Method · 0.95
forFileMethod · 0.95
forStreamMethod · 0.95
forUrlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected