Class ExceptionMessageFormatter
Shared message-text helpers used by S100DatasetSchemaException, S100DatasetNotSupportedException, and dataset readers that need to construct a "not yet supported" message with the canonical four-piece shape (product, file, feature, spec ref).
public static class ExceptionMessageFormatter
- Inheritance
-
ExceptionMessageFormatter
- Inherited Members
Methods
FormatNotSupported(string, string?, string, string?, string?)
Formats a "not yet supported" message with the canonical four-piece shape used across S-100 readers.
public static string FormatNotSupported(string product, string? file, string feature, string? specReference, string? trailingHint)
Parameters
Returns
FormatSchema(string, string?, string, string?, string?, string?)
Formats the standard "missing required attribute / group" message.
public static string FormatSchema(string product, string? file, string groupPath, string? attributeOrDataset, string? specReference, string? additionalContext = null)
Parameters
productstringProduct code, e.g.
"S-102".filestringDataset file name, or null when unknown.
groupPathstringHDF5 group path where the item was expected.
attributeOrDatasetstringName of the missing attribute or dataset, if any.
specReferencestringProduct-specification clause that requires the item, if known.
additionalContextstringOptional extra sentence appended after the standard text — used, for example, to note that the dataset declares an unexpected product-specification edition that may explain the failure.