public final class Errors
extends java.lang.Object
Static members which call JNI methods must be defined in ErrorsStaticallyReferencedJniMethods.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Errors.NativeIoException
Internal usage only!
|
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
handleConnectErrno(java.lang.String method,
int err) |
static int |
ioResult(java.lang.String method,
int err) |
static int |
ioResult(java.lang.String method,
int err,
Errors.NativeIoException resetCause,
java.nio.channels.ClosedChannelException closedCause)
已过时。
|
static Errors.NativeIoException |
newConnectionResetException(java.lang.String method,
int errnoNegative) |
static Errors.NativeIoException |
newIOException(java.lang.String method,
int err) |
static void |
throwConnectException(java.lang.String method,
int err)
已过时。
|
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(java.lang.String method,
int err)
throws java.io.IOException
java.io.IOException@Deprecated
public static void throwConnectException(java.lang.String method,
int err)
throws java.io.IOException
handleConnectErrno(String, int).method - The native method name which caused the errno.err - the negative value of the errno.java.io.IOException - The errno translated into an exception.public static Errors.NativeIoException newConnectionResetException(java.lang.String method, int errnoNegative)
public static Errors.NativeIoException newIOException(java.lang.String method, int err)
@Deprecated
public static int ioResult(java.lang.String method,
int err,
Errors.NativeIoException resetCause,
java.nio.channels.ClosedChannelException closedCause)
throws java.io.IOException
java.io.IOExceptionpublic static int ioResult(java.lang.String method,
int err)
throws java.io.IOException
java.io.IOException