View on GitHub

tab-info-extension

Home > tab-info > UnreachableError

UnreachableError class

An error class intended for code that should not be reachable acording to constraints that the type system knows about.

This is particularly useful when used to implement the “exhaustive switch” or “exhaustive conditional” control flow patterns

Signature:

declare class UnreachableError extends Error 

Extends: Error

Constructors

Constructor Modifiers Description
(constructor)(nvr, message)   Constructs a new instance of the UnreachableError class