/**
 * Ensure exhaustive matching for variants.
 */ export class UnreachableCaseError extends Error { constructor ( variant , message ) { super ( `Unhandled ${ JSON . stringify ( variant ) }: ${ message }` ) ; } }