Runtime error thrown when attempting to get/unwrap the wrong side of an Either jonad.
const maybeNumber = Option.from(null);maybeNumber.getLeftOrThrow();// => GetValueErorr: Attempted to get the left value, but it was missing Copy
const maybeNumber = Option.from(null);maybeNumber.getLeftOrThrow();// => GetValueErorr: Attempted to get the left value, but it was missing
Constructs a new GetValueError.
The side of the Either jonad that was missing a value.
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Runtime error thrown when attempting to get/unwrap the wrong side of an Either jonad.
Example