Home / Class/ NativeIoException Class — netty Architecture

NativeIoException Class — netty Architecture

Architecture documentation for the NativeIoException class in Errors.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  389ea02b_494d_2ba6_3e25_1a4d68bfc451["NativeIoException"]
  60e7c91e_73b4_5871_d5a9_09808c81c2cd["Errors.java"]
  389ea02b_494d_2ba6_3e25_1a4d68bfc451 -->|defined in| 60e7c91e_73b4_5871_d5a9_09808c81c2cd
  8955ca13_67aa_3790_df1a_8345a2f99702["NativeIoException()"]
  389ea02b_494d_2ba6_3e25_1a4d68bfc451 -->|method| 8955ca13_67aa_3790_df1a_8345a2f99702
  d0e00428_b236_bd78_a836_f946b9cd288c["expectedErr()"]
  389ea02b_494d_2ba6_3e25_1a4d68bfc451 -->|method| d0e00428_b236_bd78_a836_f946b9cd288c
  f018d146_090b_42f7_a81e_e66c736ad70e["Throwable()"]
  389ea02b_494d_2ba6_3e25_1a4d68bfc451 -->|method| f018d146_090b_42f7_a81e_e66c736ad70e

Relationship Graph

Source Code

transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java lines 77–103

    public static final class NativeIoException extends IOException {
        private static final long serialVersionUID = 8222160204268655526L;
        private final int expectedErr;
        private final boolean fillInStackTrace;

        public NativeIoException(String method, int expectedErr) {
            this(method, expectedErr, true);
        }

        public NativeIoException(String method, int expectedErr, boolean fillInStackTrace) {
            super(method + "(..) failed with error(" + expectedErr + "): " + errnoString(-expectedErr));
            this.expectedErr = expectedErr;
            this.fillInStackTrace = fillInStackTrace;
        }

        public int expectedErr() {
            return expectedErr;
        }

        @Override
        public synchronized Throwable fillInStackTrace() {
            if (fillInStackTrace) {
                return super.fillInStackTrace();
            }
            return this;
        }
    }

Frequently Asked Questions

What is the NativeIoException class?
NativeIoException is a class in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java.
Where is NativeIoException defined?
NativeIoException is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java at line 77.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free