Skip to content

Errors ​

All errors extend TemporalKitError and carry a stable code string. The classes are exported from the root entry.

ClassCodesThrown when
TemporalKitTypeErrorTYPE_MISMATCH, UNSUPPORTED_TYPETemporal types are mixed, or a type is not supported
TemporalKitParseErrorPARSE_FAILEDInput does not match the pattern, schema path, or column format; has input and pattern or path
TemporalKitRangeErrorINVALID_RANGE, NEEDS_REFERENCE_DATEAn interval ends before it starts; calendar units need a reference date
TemporalKitConfigErrorINVALID_CONFIGOptions or arguments are invalid, such as a business calendar with no working days
TemporalKitEnvironmentErrorTEMPORAL_MISSINGThere is no globalThis.Temporal

Released under the MIT License.