Skip to content

panic

panic(reason): PanicSpec

Defined in: extract/spec.ts:378

Create a panic spec that always fails with the given reason. Use as a match default to signal unrecoverable conditions.

string

PanicSpec

$.get('env').match(
when(eq('prod'), $.get('prodConfig').string()),
when(eq('dev'), $.get('devConfig').string()),
otherwise(panic('Unknown environment'))
)