cf::ui::core::TokenError¶
Error type for Token operations. More...
#include <token.hpp>
Public Types¶
| Name | |
|---|---|
| enum class | Kind { NotFound, TypeMismatch, AlreadyRegistered, Empty} Error kind enumeration. |
Public Functions¶
| Name | |
|---|---|
| TokenError() =default Default constructor. |
|
| TokenError(Kind k, std::string msg) Construct from kind and message. |
|
| operator bool() const Implicit bool conversion for error checking. |
Public Attributes¶
| Name | |
|---|---|
| enumcf::ui::core::TokenError::Kind | kind |
| std::string | message Human-readable error message. |
Detailed Description¶
Error type for Token operations.
Since: 0.1
Public Types Documentation¶
enum Kind¶
| Enumerator | Value | Description |
|---|---|---|
| NotFound | Token not found in registry. | |
| TypeMismatch | Type mismatch during get |
|
| AlreadyRegistered | Token already registered. | |
| Empty | Token has no value. |
Error kind enumeration.
Since: 0.1
Public Functions Documentation¶
function TokenError¶
Default constructor.
Since: 0.1
function TokenError¶
Construct from kind and message.
Parameters:
- k Error kind.
- msg Error message.
Since: 0.1
function operator bool¶
Implicit bool conversion for error checking.
Return: true if this represents an error.
Since: 0.1
Public Attributes Documentation¶
variable kind¶
variable message¶
Human-readable error message.
Since: 0.1
Updated on 2026-03-09 at 10:14:00 +0000