ConfigError
Source locationmrx/core/config/ConfigSchema.hpp
Describes one parser or validation failure produced by ConfigSchema.
Paths use section.property notation. Unknown-property errors may include a nearby declared property name in suggestion(), and toString() renders that suggestion for user-facing output.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
ConfigError | Constructs an empty parser error. | |
ConfigError | Constructs a descriptive validation error. | |
Code | code const | Returns the machine-readable error category. |
QString | path const | Returns the dotted section/property path. |
QString | message const | Returns the human-readable failure reason without a suggestion. |
QString | suggestion const | Returns the suggested property name, or an empty string if none exists. |
QString | toString const | Formats the path, reason, and optional suggestion as one message. |
ConfigError
Section titled “ConfigError”Source locationmrx/core/config/ConfigSchema.hpp
Constructs an empty parser error.
ConfigError
Section titled “ConfigError”Source locationmrx/core/config/ConfigSchema.hpp
Constructs a descriptive validation error.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
code | Code | Category of validation failure. |
path | const QString& | Dotted section/property path associated with the failure. |
message | const QString& | Human-readable reason for the failure. |
suggestion | const QString& | Optional property name suggestion for an unknown property. |
const
Source locationmrx/core/config/ConfigSchema.hpp
Returns the machine-readable error category.
const
Source locationmrx/core/config/ConfigSchema.hpp
Returns the dotted section/property path.
const
message
Section titled “message”Source locationmrx/core/config/ConfigSchema.hpp
Returns the human-readable failure reason without a suggestion.
const
suggestion
Section titled “suggestion”Source locationmrx/core/config/ConfigSchema.hpp
Returns the suggested property name, or an empty string if none exists.
const
toString
Section titled “toString”Source locationmrx/core/config/ConfigSchema.hpp
Formats the path, reason, and optional suggestion as one message.
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
Code | Identifies the validation failure represented by a ConfigError. |
Source locationmrx/core/config/ConfigSchema.hpp
Identifies the validation failure represented by a ConfigError.
| Value | Description |
|---|---|
ParserError | The INI file could not be read or parsed. |
MissingRequiredSection | A schema-declared required section is absent. |
MissingRequiredProperty | A required property is absent from a present section. |
UnknownSection | The configuration contains a section not declared by the schema. |
UnknownProperty | The configuration contains a property not declared in its section. |
ConversionError | A source value cannot be converted to its declared type. |
SchemaError | The fluent schema declaration API was used in an invalid order. |
RangeError | A converted value is outside its declared range. |
ValidatorError | A custom validator rejected a converted value. |