Struct ConfigLayoutValidationMessage
One problem found by Validate(IReadOnlyList<string>, IReadOnlyList<string>, IReadOnlyList<string>).
Inherited Members
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public readonly struct ConfigLayoutValidationMessage
Remarks
Deliberately shaped like ContextValidationMessage so an editor can merge both
sources through one adapter. Index is a field rather than being baked
into the message text, because a layout editor has to jump to the offending row.
Constructors
ConfigLayoutValidationMessage(ConfigLayoutValidationSeverity, string, string, int)
Initializes a message.
Declaration
public ConfigLayoutValidationMessage(ConfigLayoutValidationSeverity severity, string message, string fieldName = null, int index = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| ConfigLayoutValidationSeverity | severity | How serious the problem is. |
| string | message | Human-readable description. |
| string | fieldName | The field the problem belongs to. |
| int | index | Index of the offending entry, or |
Fields
FieldName
The field the problem belongs to, or null.
Declaration
public readonly string FieldName
Field Value
| Type | Description |
|---|---|
| string |
Index
Index of the offending entry within its list, or -1.
Declaration
public readonly int Index
Field Value
| Type | Description |
|---|---|
| int |
Message
Human-readable description.
Declaration
public readonly string Message
Field Value
| Type | Description |
|---|---|
| string |
Severity
How serious the problem is.
Declaration
public readonly ConfigLayoutValidationSeverity Severity
Field Value
| Type | Description |
|---|---|
| ConfigLayoutValidationSeverity |