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.
Parameters
Section titled “Parameters”reason
Section titled “reason”string
Returns
Section titled “Returns”Example
Section titled “Example”$.get('env').match( when(eq('prod'), $.get('prodConfig').string()), when(eq('dev'), $.get('devConfig').string()), otherwise(panic('Unknown environment')))