Class Errors

    • Field Detail

      • ERRNO_ENOENT_NEGATIVE

        public static final int ERRNO_ENOENT_NEGATIVE
      • ERRNO_ENOTCONN_NEGATIVE

        public static final int ERRNO_ENOTCONN_NEGATIVE
      • ERRNO_EBADF_NEGATIVE

        public static final int ERRNO_EBADF_NEGATIVE
      • ERRNO_EPIPE_NEGATIVE

        public static final int ERRNO_EPIPE_NEGATIVE
      • ERRNO_ECONNRESET_NEGATIVE

        public static final int ERRNO_ECONNRESET_NEGATIVE
      • ERRNO_EAGAIN_NEGATIVE

        public static final int ERRNO_EAGAIN_NEGATIVE
      • ERRNO_EWOULDBLOCK_NEGATIVE

        public static final int ERRNO_EWOULDBLOCK_NEGATIVE
      • ERRNO_EINPROGRESS_NEGATIVE

        public static final int ERRNO_EINPROGRESS_NEGATIVE
      • ERROR_ECONNREFUSED_NEGATIVE

        public static final int ERROR_ECONNREFUSED_NEGATIVE
      • ERROR_EISCONN_NEGATIVE

        public static final int ERROR_EISCONN_NEGATIVE
      • ERROR_EALREADY_NEGATIVE

        public static final int ERROR_EALREADY_NEGATIVE
      • ERROR_ENETUNREACH_NEGATIVE

        public static final int ERROR_ENETUNREACH_NEGATIVE
      • ERROR_EHOSTUNREACH_NEGATIVE

        public static final int ERROR_EHOSTUNREACH_NEGATIVE
      • ERRORS

        private static final java.lang.String[] ERRORS
        Holds the mappings for errno codes to String messages. This eliminates the need to call back into JNI to get the right String message on an exception and thus is faster. Choose an array length which should give us enough space in the future even when more errno codes will be added.
    • Constructor Detail

      • Errors

        private Errors()
    • Method Detail

      • handleConnectErrno

        public static boolean handleConnectErrno​(java.lang.String method,
                                                 int err)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • throwConnectException

        @Deprecated
        public static void throwConnectException​(java.lang.String method,
                                                 int err)
                                          throws java.io.IOException
        Parameters:
        method - The native method name which caused the errno.
        err - the negative value of the errno.
        Throws:
        java.io.IOException - The errno translated into an exception.
      • errnoString

        private static java.lang.String errnoString​(int err)
      • newConnectException0

        private static java.io.IOException newConnectException0​(java.lang.String method,
                                                                int err)
      • newConnectionResetException

        public static Errors.NativeIoException newConnectionResetException​(java.lang.String method,
                                                                           int errnoNegative)
      • ioResult

        @Deprecated
        public static int ioResult​(java.lang.String method,
                                   int err,
                                   Errors.NativeIoException resetCause,
                                   java.nio.channels.ClosedChannelException closedCause)
                            throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • ioResult

        public static int ioResult​(java.lang.String method,
                                   int err)
                            throws java.io.IOException
        Throws:
        java.io.IOException