public final class Errors extends Object
Static members which call JNI methods must be defined in ErrorsStaticallyReferencedJniMethods
.
Modifier and Type | Class and Description |
---|---|
static class |
Errors.NativeIoException
Internal usage only!
|
Modifier and Type | Field and 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_EHOSTUNREACH_NEGATIVE |
static int |
ERROR_EISCONN_NEGATIVE |
static int |
ERROR_ENETUNREACH_NEGATIVE |
Modifier and Type | Method and Description |
---|---|
static boolean |
handleConnectErrno(String method,
int err) |
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.
|
public static final int ERRNO_ENOENT_NEGATIVE
public static final int ERRNO_ENOTCONN_NEGATIVE
public static final int ERRNO_EBADF_NEGATIVE
public static final int ERRNO_EPIPE_NEGATIVE
public static final int ERRNO_ECONNRESET_NEGATIVE
public static final int ERRNO_EAGAIN_NEGATIVE
public static final int ERRNO_EWOULDBLOCK_NEGATIVE
public static final int ERRNO_EINPROGRESS_NEGATIVE
public static final int ERROR_ECONNREFUSED_NEGATIVE
public static final int ERROR_EISCONN_NEGATIVE
public static final int ERROR_EALREADY_NEGATIVE
public static final int ERROR_ENETUNREACH_NEGATIVE
public static final int ERROR_EHOSTUNREACH_NEGATIVE
public static boolean handleConnectErrno(String method, int err) throws IOException
IOException
@Deprecated public static void throwConnectException(String method, int err) throws IOException
handleConnectErrno(String, int)
.method
- The native method name which caused the errno.err
- the negative value of the errno.IOException
- The errno translated into an exception.public static Errors.NativeIoException newConnectionResetException(String method, int errnoNegative)
public static Errors.NativeIoException newIOException(String method, int err)
@Deprecated public static int ioResult(String method, int err, Errors.NativeIoException resetCause, ClosedChannelException closedCause) throws IOException
IOException
public static int ioResult(String method, int err) throws IOException
IOException
Copyright © 2008–2024 The Netty Project. All rights reserved.