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
operation
string
Returns
InvalidInstantError
Overrides
Properties
code
readonlycode:ThrownCode
Defined in: model/errors.ts:104
Inherited from
operation
readonlyoperation:string
Defined in: model/errors.ts:189
reason
readonlyreason:InvalidInstantReason
Defined in: model/errors.ts:188
value
readonlyvalue:unknown
Defined in: model/errors.ts:187