Native error codes v0.1.0
A platform's own error code, read as the IoError every operation here reports.
NativeKind
pub func NativeKind(raw: int32) -> IoErrorKind
The meaning of a platform error code on the platform this program was compiled for.
Codes with no portable meaning translate to Other; the caller still has the raw code beside it.
Parameters
| Name | Type | Description |
|---|---|---|
raw | int32 | the platform's own error number or code |
Returns: the kind this package gives that platform code
TranslateNative
pub func TranslateNative(raw: int32) -> IoError
A platform error code as the structured error everything here reports.
Parameters
| Name | Type | Description |
|---|---|---|
raw | int32 | the platform's own error number or code |
Returns: the error this package gives that platform code, keeping the raw value