- java.lang.Object
-
- io.netty5.channel.unix.Errors
-
public final class Errors extends Object
Internal usage only!Static members which call JNI methods must be defined in
ErrorsStaticallyReferencedJniMethods
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Errors.NativeIoException
Internal usage only!
-
Field Summary
Fields Modifier and Type Field Description static int
ERRNO_EAGAIN_NEGATIVE
static int
ERRNO_EBADF_NEGATIVE
static int
ERRNO_ECONNRESET_NEGATIVE
static int
ERRNO_EINPROGRESS_NEGATIVE
static int
ERRNO_ENOENT_NEGATIVE
static int
ERRNO_ENOTCONN_NEGATIVE
static int
ERRNO_EPIPE_NEGATIVE
static int
ERRNO_EWOULDBLOCK_NEGATIVE
static int
ERROR_EALREADY_NEGATIVE
static int
ERROR_ECONNREFUSED_NEGATIVE
static int
ERROR_EISCONN_NEGATIVE
static int
ERROR_ENETUNREACH_NEGATIVE
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
ioResult(String method, int err)
static int
ioResult(String method, int err, Errors.NativeIoException resetCause, ClosedChannelException closedCause)
Deprecated.static Errors.NativeIoException
newConnectionResetException(String method, int errnoNegative)
static Errors.NativeIoException
newIOException(String method, int err)
static void
throwConnectException(String method, int err)
Deprecated.
-
-
-
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
-
-
Method Detail
-
throwConnectException
@Deprecated public static void throwConnectException(String method, int err) throws IOException
Deprecated.- Parameters:
method
- The native method name which caused the errno.err
- the negative value of the errno.- Throws:
IOException
- The errno translated into an exception.
-
newConnectionResetException
public static Errors.NativeIoException newConnectionResetException(String method, int errnoNegative)
-
newIOException
public static Errors.NativeIoException newIOException(String method, int err)
-
ioResult
@Deprecated public static int ioResult(String method, int err, Errors.NativeIoException resetCause, ClosedChannelException closedCause) throws IOException
Deprecated.- Throws:
IOException
-
ioResult
public static int ioResult(String method, int err) throws IOException
- Throws:
IOException
-
-