Skip to main content

Class: InvalidInstantError

Defined in: model/errors.ts:186

code: 'invalid-instant' — a consumer wrote a value on an InstantInput field that names no instant. value is the thing they wrote, so a bulk loader can name the row it came from; reason is why, so a consumer branches on data rather than parsing the message. operation names the public call the consumer made — required, because time/'s internal door (invalidInstant()) takes it as a required parameter too, so no caller can forget it (#242).

The two private static readers below build the message from value/reason alone — no shared state, nothing beyond what this one class already carries — the same reason PluginSetupError above keeps its own alternate constructor rather than reaching out of the class for one.

Extends​

Constructors​

Constructor​

new InvalidInstantError(value, reason, operation): InvalidInstantError

Defined in: model/errors.ts:191

Parameters​

value​

unknown

reason​

InvalidInstantReason

operation​

string

Returns​

InvalidInstantError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:104

Inherited from​

FreeGanttError.code


operation​

readonly operation: string

Defined in: model/errors.ts:189


reason​

readonly reason: InvalidInstantReason

Defined in: model/errors.ts:188


value​

readonly value: unknown

Defined in: model/errors.ts:187