Unified kernel error type. More...
Public Member Functions | |
| constexpr | kernel_error () noexcept |
| Default constructor: no error. | |
| constexpr | kernel_error (error_category cat, u32 c) noexcept |
| Construct from category and raw code. | |
| constexpr | operator bool () const noexcept |
| Check if error is non-zero. | |
| constexpr auto | operator!= (const kernel_error &other) const noexcept -> bool |
| Check if two errors differ. | |
| constexpr auto | operator== (const kernel_error &other) const noexcept -> bool |
| Check if two errors are identical. | |
Static Public Member Functions | |
| static constexpr auto | from_arch (arch_error::code c) noexcept -> kernel_error |
| Construct architecture error. | |
| static constexpr auto | from_crypto (crypto_error::code c) noexcept -> kernel_error |
| Construct cryptographic error. | |
| static constexpr auto | from_driver (driver_error::code c) noexcept -> kernel_error |
| Construct driver error. | |
| static constexpr auto | from_generic (generic_error::code c) noexcept -> kernel_error |
| Construct generic error. | |
| static constexpr auto | from_init (init_error::code c) noexcept -> kernel_error |
| Construct initialization error. | |
| static constexpr auto | from_locking (locking_error::code c) noexcept -> kernel_error |
| Construct locking error. | |
| static constexpr auto | from_machine (machine_error::code c) noexcept -> kernel_error |
| static constexpr auto | from_memory (memory_error::code c) noexcept -> kernel_error |
| Construct memory error. | |
| static constexpr auto | from_time (time_error::code c) noexcept -> kernel_error |
| Construct time error. | |
Data Fields | |
| error_category | category |
| Error category discriminator. | |
| u32 | code |
| Subsystem-specific error code. | |
Unified kernel error type.
|
inlineconstexprexportnoexcept |
Construct from category and raw code.
| [in] | cat | Error category. |
| [in] | c | Raw error code. |
|
inlinestaticconstexprexportnoexcept |
Construct architecture error.
| [in] | c | arch_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct cryptographic error.
| [in] | c | crypto_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct driver error.
| [in] | c | driver_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct generic error.
| [in] | c | generic_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct initialization error.
| [in] | c | init_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct locking error.
| [in] | c | locking_error::code value. |
|
inlinestaticconstexprexportnoexcept |
| [in] | c | generic_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct memory error.
| [in] | c | memory_error::code value. |
|
inlinestaticconstexprexportnoexcept |
Construct time error.
| [in] | c | time_error::code value. |
|
inlineexplicitconstexprexportnoexcept |
Check if error is non-zero.