Skip to content

editorGlobalsUnreachableCaseError

Class: UnreachableCaseError

Throws a typescript error which will make typescript complain if it is hit. Throws a runtime error. You can use it in switch default case.

Hierarchy

UnreachableCaseError

Index

Constructors

Properties

Constructors

constructor

+ new UnreachableCaseError(val: never): UnreachableCaseError

Defined in src/util/UnreachableCaseError.ts:6

Parameters:

Name Type
val never

Returns: UnreachableCaseError

Properties

message

message: string

Inherited from HttpRequestError.message

Defined in node_modules/typescript/lib/lib.es5.d.ts:974


name

name: string

Inherited from HttpRequestError.name

Defined in node_modules/typescript/lib/lib.es5.d.ts:973


Optional stack

stack? : string

Inherited from HttpRequestError.stack

Defined in node_modules/typescript/lib/lib.es5.d.ts:975


Static Error

Error: ErrorConstructor

Defined in node_modules/typescript/lib/lib.es5.d.ts:984