Introduce GraphQlClientException hierarchy

Refine exception handling and ensure a hierarchy of exceptions that
allows differentiating between transport errors vs field errors while
accessing an invalid data or field.

See gh-10
This commit is contained in:
rstoyanchev
2022-03-14 20:54:55 +00:00
parent eb3c8d1a7e
commit 3214a9cfc9
10 changed files with 448 additions and 107 deletions

View File

@@ -127,7 +127,10 @@ class WebFluxSecuritySampleTests {
.build()
.documentName("employeesNamesAndSalaries")
.executeAndVerify())
.hasMessage("Invalid handshake response getStatus: 401 Unauthorized");
.hasMessage(
"GraphQlTransport error: Invalid handshake response getStatus: 401 Unauthorized; " +
"nested exception is io.netty.handler.codec.http.websocketx.WebSocketClientHandshakeException: " +
"Invalid handshake response getStatus: 401 Unauthorized");
}
}