public final class ErrnoException
extends java.lang.Exception
Os methods fail. This exception contains the native
errno value, for comparison against the constants in OsConstants, should sophisticated
callers need to adjust their behavior based on the exact failure.| Modifier and Type | Field and Description |
|---|---|
int |
errno |
| Constructor and Description |
|---|
ErrnoException(java.lang.String functionName,
int errno) |
ErrnoException(java.lang.String functionName,
int errno,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage()
Converts the stashed function name and errno value to a human-readable string.
|
java.io.IOException |
rethrowAsIOException() |
public ErrnoException(java.lang.String functionName,
int errno)
public ErrnoException(java.lang.String functionName,
int errno,
java.lang.Throwable cause)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.io.IOException rethrowAsIOException()
throws java.io.IOException
java.io.IOException