Table of Contents

Class ExceptionMessageFormatter

Namespace
EncDotNet.S100.Hdf5
Assembly
EncDotNet.S100.Core.dll

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

product string
file string
feature string
specReference string
trailingHint string

Returns

string

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

product string

Product code, e.g. "S-102".

file string

Dataset file name, or null when unknown.

groupPath string

HDF5 group path where the item was expected.

attributeOrDataset string

Name of the missing attribute or dataset, if any.

specReference string

Product-specification clause that requires the item, if known.

additionalContext string

Optional 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.

Returns

string