Static members which call JNI methods must be defined in ErrorsStaticallyReferencedJniMethods.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static class | Errors.NativeIoException
Internal usage only! |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final String[] | ERRORS
Holds the mappings for errno codes to String messages. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static boolean | |
| public static int | ioResult(String method, int err, Errors.
Deprecated
|
| public static int | |
| private static IOException | |
| public static Errors. | |
| public static Errors. | |
| public static void | throwConnectException(String
The native method name which caused the errno. method, int the negative value of the errno. err)
Deprecated
Use
handleConnectErrno(String, int).
|
| ERRNO_EAGAIN_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_EAGAIN_NEGATIVE | |
| ERRNO_EBADF_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_EBADF_NEGATIVE | |
| ERRNO_ECONNRESET_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_ECONNRESET_NEGATIVE | |
| ERRNO_EINPROGRESS_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_EINPROGRESS_NEGATIVE | |
| ERRNO_ENOENT_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_ENOENT_NEGATIVE | |
| ERRNO_ENOTCONN_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_ENOTCONN_NEGATIVE | |
| ERRNO_EPIPE_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_EPIPE_NEGATIVE | |
| ERRNO_EWOULDBLOCK_NEGATIVE | back to summary |
|---|---|
| public static final int ERRNO_EWOULDBLOCK_NEGATIVE | |
| ERROR_EALREADY_NEGATIVE | back to summary |
|---|---|
| public static final int ERROR_EALREADY_NEGATIVE | |
| ERROR_ECONNREFUSED_NEGATIVE | back to summary |
|---|---|
| public static final int ERROR_ECONNREFUSED_NEGATIVE | |
| ERROR_EHOSTUNREACH_NEGATIVE | back to summary |
|---|---|
| public static final int ERROR_EHOSTUNREACH_NEGATIVE | |
| ERROR_EISCONN_NEGATIVE | back to summary |
|---|---|
| public static final int ERROR_EISCONN_NEGATIVE | |
| ERROR_ENETUNREACH_NEGATIVE | back to summary |
|---|---|
| public static final int ERROR_ENETUNREACH_NEGATIVE | |
| ERRORS | back to summary |
|---|---|
| private static final 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. | |
| Errors | back to summary |
|---|---|
| private Errors() | |
| errnoString | back to summary |
|---|---|
| private static String errnoString(int err) | |
| handleConnectErrno | back to summary |
|---|---|
| public static boolean handleConnectErrno(String method, int err) throws IOException | |
| ioResult | back to summary |
|---|---|
| public static int ioResult(String method, int err, Errors. Deprecated
| |
| ioResult | back to summary |
|---|---|
| public static int ioResult(String method, int err) throws IOException | |
| newConnectException0 | back to summary |
|---|---|
| private static IOException newConnectException0(String method, int err) | |
| newConnectionResetException | back to summary |
|---|---|
| public static Errors. | |
| newIOException | back to summary |
|---|---|
| public static Errors. | |
| throwConnectException | back to summary |
|---|---|
| public static void throwConnectException(String method, int err) throws IOException
Deprecated
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int |
| expectedErr | back to summary |
|---|---|
| private final int expectedErr | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NativeConnectException | back to summary |
|---|---|
| pack-priv NativeConnectException(String method, int expectedErr) | |
| expectedErr | back to summary |
|---|---|
| pack-priv int expectedErr() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public synchronized Throwable | fillInStackTrace()
Overrides java. |
| expectedErr | back to summary |
|---|---|
| private final int expectedErr | |
| fillInStackTrace | back to summary |
|---|---|
| private final boolean fillInStackTrace | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NativeIoException | back to summary |
|---|---|
| public NativeIoException(String method, int expectedErr) | |
| NativeIoException | back to summary |
|---|---|
| public NativeIoException(String method, int expectedErr, boolean fillInStackTrace) | |
| expectedErr | back to summary |
|---|---|
| public int expectedErr() | |
| fillInStackTrace | back to summary |
|---|---|
| public synchronized Throwable fillInStackTrace() Overrides java. Doc from java. Fills in the execution stack trace. This method records within this
If the stack trace of this | |