verifyException() — netty Function Reference
Architecture documentation for the verifyException() function in SslErrorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD afd68690_7174_3247_87f3_c3385f487456["verifyException()"] 82658c62_302c_0f55_56df_d775fd8678b9["SslErrorTest"] afd68690_7174_3247_87f3_c3385f487456 -->|defined in| 82658c62_302c_0f55_56df_d775fd8678b9 5fd671a5_e3f0_0904_b972_222bc3b5f444["exceptionCaught()"] 5fd671a5_e3f0_0904_b972_222bc3b5f444 -->|calls| afd68690_7174_3247_87f3_c3385f487456 style afd68690_7174_3247_87f3_c3385f487456 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java lines 284–305
private static void verifyException(SslProvider clientProvider, boolean serverProduceError,
Throwable cause, Promise<Void> promise, String... messageParts) {
String message = cause.getMessage();
// When the error is produced on the client side and the client side uses JDK as provider it will always
// use "certificate unknown".
if (!serverProduceError && clientProvider == SslProvider.JDK &&
message.toLowerCase(Locale.UK).contains("unknown")) {
promise.setSuccess(null);
return;
}
for (String m: messageParts) {
if (message.toLowerCase(Locale.UK).contains(m.toLowerCase(Locale.UK))) {
promise.setSuccess(null);
return;
}
}
Throwable error = new AssertionError("message not contains any of '"
+ Arrays.toString(messageParts) + "': " + message);
error.initCause(cause);
promise.setFailure(error);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does verifyException() do?
verifyException() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java.
Where is verifyException() defined?
verifyException() is defined in handler/src/test/java/io/netty/handler/ssl/SslErrorTest.java at line 284.
What calls verifyException()?
verifyException() is called by 1 function(s): exceptionCaught.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free