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:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user