ioResult() — netty Function Reference
Architecture documentation for the ioResult() function in Errors.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d5b50b0c_60fc_262c_54c0_df7c98627d48["ioResult()"] 93a42678_e9fc_3a0e_6c3b_8f2b742961ed["Errors"] d5b50b0c_60fc_262c_54c0_df7c98627d48 -->|defined in| 93a42678_e9fc_3a0e_6c3b_8f2b742961ed 3e27d4cd_add2_102e_dd56_af9e5a96ab6a["expectedErr()"] d5b50b0c_60fc_262c_54c0_df7c98627d48 -->|calls| 3e27d4cd_add2_102e_dd56_af9e5a96ab6a 8955ca13_67aa_3790_df1a_8345a2f99702["NativeIoException()"] d5b50b0c_60fc_262c_54c0_df7c98627d48 -->|calls| 8955ca13_67aa_3790_df1a_8345a2f99702 style d5b50b0c_60fc_262c_54c0_df7c98627d48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java lines 179–202
@Deprecated
public static int ioResult(String method, int err, NativeIoException resetCause,
ClosedChannelException closedCause) throws IOException {
// network stack saturated... try again later
if (err == ERRNO_EAGAIN_NEGATIVE || err == ERRNO_EWOULDBLOCK_NEGATIVE) {
return 0;
}
if (err == resetCause.expectedErr()) {
throw resetCause;
}
if (err == ERRNO_EBADF_NEGATIVE) {
throw closedCause;
}
if (err == ERRNO_ENOTCONN_NEGATIVE) {
throw new NotYetConnectedException();
}
if (err == ERRNO_ENOENT_NEGATIVE) {
throw new FileNotFoundException();
}
// TODO: We could even go further and use a pre-instantiated IOException for the other error codes, but for
// all other errors it may be better to just include a stack trace.
throw newIOException(method, err);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ioResult() do?
ioResult() is a function in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java.
Where is ioResult() defined?
ioResult() is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java at line 179.
What does ioResult() call?
ioResult() calls 2 function(s): NativeIoException, expectedErr.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free