Package io.netty.channel.unix
Class Errors
- java.lang.Object
-
- io.netty.channel.unix.Errors
-
public final class Errors extends java.lang.ObjectInternal usage only!Static members which call JNI methods must be defined in
ErrorsStaticallyReferencedJniMethods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classErrors.NativeConnectExceptionstatic classErrors.NativeIoExceptionInternal usage only!
-
Field Summary
Fields Modifier and Type Field Description static intERRNO_EAGAIN_NEGATIVEstatic intERRNO_EBADF_NEGATIVEstatic intERRNO_ECONNRESET_NEGATIVEstatic intERRNO_EINPROGRESS_NEGATIVEstatic intERRNO_ENOENT_NEGATIVEstatic intERRNO_ENOTCONN_NEGATIVEstatic intERRNO_EPIPE_NEGATIVEstatic intERRNO_EWOULDBLOCK_NEGATIVEstatic intERROR_EALREADY_NEGATIVEstatic intERROR_ECONNREFUSED_NEGATIVEstatic intERROR_EISCONN_NEGATIVEstatic intERROR_ENETUNREACH_NEGATIVEprivate static java.lang.String[]ERRORSHolds the mappings for errno codes to String messages.
-
Constructor Summary
Constructors Modifier Constructor Description privateErrors()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intioResult(java.lang.String method, int err)static intioResult(java.lang.String method, int err, Errors.NativeIoException resetCause, java.nio.channels.ClosedChannelException closedCause)Deprecated.static Errors.NativeIoExceptionnewConnectionResetException(java.lang.String method, int errnoNegative)static Errors.NativeIoExceptionnewIOException(java.lang.String method, int err)static voidthrowConnectException(java.lang.String method, int err)
-
-
-
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
-
ERRORS
private static final java.lang.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. The array length of 512 should be more then enough because errno.h only holds < 200 codes.
-
-
Method Detail
-
throwConnectException
public static void throwConnectException(java.lang.String method, int err) throws java.io.IOException- Throws:
java.io.IOException
-
newConnectionResetException
public static Errors.NativeIoException newConnectionResetException(java.lang.String method, int errnoNegative)
-
newIOException
public static Errors.NativeIoException newIOException(java.lang.String method, int err)
-
ioResult
@Deprecated public static int ioResult(java.lang.String method, int err, Errors.NativeIoException resetCause, java.nio.channels.ClosedChannelException closedCause) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
ioResult
public static int ioResult(java.lang.String method, int err) throws java.io.IOException- Throws:
java.io.IOException
-
-