public final class Errors
extends java.lang.Object
Static members which call JNI methods must be defined in ErrorsStaticallyReferencedJniMethods
.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Errors.NativeConnectException |
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_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 |
private static java.lang.String[] |
ERRORS
Holds the mappings for errno codes to String messages.
|
Modifier | Constructor and Description |
---|---|
private |
Errors() |
Modifier and Type | Method and Description |
---|---|
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) |
(package private) static void |
throwConnectException(java.lang.String method,
Errors.NativeConnectException refusedCause,
int err) |
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
private static final java.lang.String[] ERRORS
static void throwConnectException(java.lang.String method, Errors.NativeConnectException refusedCause, int err) throws java.io.IOException
java.io.IOException
public static Errors.NativeIoException newConnectionResetException(java.lang.String method, int errnoNegative)
public static Errors.NativeIoException newIOException(java.lang.String method, int err)
public static int ioResult(java.lang.String method, int err, Errors.NativeIoException resetCause, java.nio.channels.ClosedChannelException closedCause) throws java.io.IOException
java.io.IOException