tryFailure() — netty Function Reference
Architecture documentation for the tryFailure() function in PromiseNotificationUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7098ae12_530a_d31b_af6a_0655ec6df5ae["tryFailure()"] 4db353b5_b84b_a5f5_1955_3d37fb42003e["PromiseNotificationUtil"] 7098ae12_530a_d31b_af6a_0655ec6df5ae -->|defined in| 4db353b5_b84b_a5f5_1955_3d37fb42003e style 7098ae12_530a_d31b_af6a_0655ec6df5ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/PromiseNotificationUtil.java lines 63–74
public static void tryFailure(Promise<?> p, Throwable cause, InternalLogger logger) {
if (!p.tryFailure(cause) && logger != null) {
Throwable err = p.cause();
if (err == null) {
logger.warn("Failed to mark a promise as failure because it has succeeded already: {}", p, cause);
} else if (logger.isWarnEnabled()) {
logger.warn(
"Failed to mark a promise as failure because it has failed already: {}, unnotified cause:",
p, cause);
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does tryFailure() do?
tryFailure() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PromiseNotificationUtil.java.
Where is tryFailure() defined?
tryFailure() is defined in common/src/main/java/io/netty/util/internal/PromiseNotificationUtil.java at line 63.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free