Expand description
§axerrno
Generic error code representation.
It provides two error types and the corresponding result types:
AxErrorandAxResult: A generic error type similar tostd::io::ErrorKind.LinuxErrorandLinuxResult: Linux specific error codes defined inerrno.h. It can be converted fromAxError.
Macros§
- ax_bail
- Throws an error of type
AxErrorwith the given error code, optionally with a message. - ax_err
- Convenience method to construct an
Err(AxError)type while printing a warning message. - ax_
err_ type - Convenience method to construct an
AxErrortype while printing a warning message. - ensure
- Ensure a condition is true. If it is not, return from the function with an error.
Structs§
- AxError
- The error type used by ArceOS.
Enums§
- AxError
Kind - The error kind type used by ArceOS.
- Linux
Error - Linux specific error codes defined in
errno.h.
Type Aliases§
- AxResult
- A specialized
Resulttype withAxErroras the error type. - Linux
Result - A specialized
Resulttype withLinuxErroras the error type.