ConfigErrorUnion

PackageAxial.Configuration
Every configuration failure is a value; loading and reading never throw.

Specification

Kind
Union
Members
12
Examples
0
describeSignature
describe error
describeWithSourcesSignature
describeWithSources sources error
IsNotTextSignature
this.IsNotText
IsInvalidSignature
this.IsInvalid
IsSourceFailedSignature
this.IsSourceFailed

Summary

NameSignatureSynopsis
Union cases
IsNotTextthis.IsNotTextNo description available.
IsInvalidthis.IsInvalidNo description available.
IsSourceFailedthis.IsSourceFailedNo description available.
IsMissingthis.IsMissingNo description available.
IsInvalidPaththis.IsInvalidPathNo description available.
SourceFailedSourceFailed(source, message)A source could not be read or parsed; SourceFailed names the layer.
InvalidInvalid SchemaErrorsA schema decode rejected the merged data; every issue is retained, keyed by SchemaPath.
MissingMissing pathA plain string read found no value at the path.
NotTextNotText pathA plain string read found an object or list at the path.
InvalidPathInvalidPath pathA plain string read used a path that is not valid DataPath syntax.
Operations
describedescribe errorRenders a failure as invariant, sorted lines.
describeWithSourcesdescribeWithSources sources errorRenders a failure with the spellings of the loaded sources, for omission hints.

Union cases

kind:member

IsNotText

this.IsNotText
Member

Returns

bool
kind:member

IsInvalid

this.IsInvalid
Member

Returns

bool
kind:member

IsSourceFailed

this.IsSourceFailed
Member

Returns

bool
kind:member

IsMissing

this.IsMissing
Member

Returns

bool
kind:member

IsInvalidPath

this.IsInvalidPath
Member

Returns

bool
kind:member

SourceFailed

SourceFailed(source, message)
Member
A source could not be read or parsed; SourceFailed names the layer.

Parameters

NameTypeDescription
sourcestring
messagestring

Returns

unit
kind:member

Invalid

Invalid SchemaErrors
Member
A schema decode rejected the merged data; every issue is retained, keyed by SchemaPath.

Parameters

NameTypeDescription
ItemSchemaErrors

Returns

unit
kind:member

Missing

Missing path
Member
A plain string read found no value at the path.

Parameters

NameTypeDescription
pathstring

Returns

unit
kind:member

NotText

NotText path
Member
A plain string read found an object or list at the path.

Parameters

NameTypeDescription
pathstring

Returns

unit
kind:member

InvalidPath

InvalidPath path
Member
A plain string read used a path that is not valid DataPath syntax.

Parameters

NameTypeDescription
pathstring

Returns

unit

Operations

kind:member

describe

describe error
Member
Renders a failure as invariant, sorted lines. Secret values never reach this text.

Parameters

NameTypeDescription
errorConfigError

Returns

string
kind:member

describeWithSources

describeWithSources sources error
Member
Renders a failure with the spellings of the loaded sources, for omission hints.

Parameters

NameTypeDescription
sourcesIConfig
errorConfigError

Returns

string