Skip to content

@vttforge/core / getErrorEntry

Function: getErrorEntry()

getErrorEntry(code): VttfErrorEntry

Look up a registered entry by code. Throws if the code is unknown; the registry is the source of truth, so missing codes mean a typo.

Parameters

code

`VTTF-${string}`

Returns

VttfErrorEntry

MIT licensed.