Serializablepublic final class OsHelperErrnoException extends Exception
OsHelper method fails. Each OsHelperErrnoException
instance contains an errno value indicating the error type. For details about the error types, see
OsHelperConstants.| 构造器 | 说明 |
|---|---|
OsHelperErrnoException(int errnoValue,
String exceptionMessage) |
A constructor used to create an
OsHelperErrnoException instance based on the given errnoValue and
exceptionMessage. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getErrnoValue() |
Obtains the
errno value of this OsHelperErrnoException instance. |
String |
getMessage() |
Obtains the exception information about this
OsHelperErrnoException instance. |
public OsHelperErrnoException(int errnoValue,
String exceptionMessage)
OsHelperErrnoException instance based on the given errnoValue and
exceptionMessage.errnoValue - Indicates the error type.exceptionMessage - Indicates information about this exception.public String getMessage()
OsHelperErrnoException instance.getMessage 在类中 Throwablepublic int getErrnoValue()
errno value of this OsHelperErrnoException instance.errno value.