Class S100DatasetNotSupportedException
Thrown when an S-100 dataset uses an optional spec feature (data-coding format, CRS variant, attribute encoding, etc.) that the current reader does not yet implement. Distinct from S100DatasetSchemaException: the file is conforming; it just exercises a region of the spec we haven't built yet.
public sealed class S100DatasetNotSupportedException : Exception, ISerializable
- Inheritance
-
S100DatasetNotSupportedException
- Implements
- Inherited Members
Constructors
S100DatasetNotSupportedException(string, string?, string, string?, string, Exception?)
Initializes a new S100DatasetNotSupportedException.
public S100DatasetNotSupportedException(string product, string? file, string feature, string? specReference, string message, Exception? innerException = null)
Parameters
productstringfilestringfeaturestringspecReferencestringmessagestringinnerExceptionException
Properties
Feature
Human-readable description of the unsupported feature, e.g.
"data coding format 8 (time series at fixed stations)".
public string Feature { get; }
Property Value
File
File name (without path) the failure relates to, or null
when the dataset was opened from a stream and the caller hasn't
yet attached the source name (see WithFile(string?)).
public string? File { get; }
Property Value
Product
Product code, e.g. "S-104".
public string Product { get; }
Property Value
SpecReference
Citation into the relevant S-100 spec, e.g.
"S-100 Part 10c ยง10.2.1". null when no
authoritative section number is known.
public string? SpecReference { get; }
Property Value
Methods
WithFile(string?)
Returns a copy of this exception with File set to
file. Used by dataset processors to attach the
source file name to an exception thrown by a reader that only had
a stream.
public S100DatasetNotSupportedException WithFile(string? file)
Parameters
filestring