Last resort fallback that violates the panic spec by throwing rather
than immediately exiting, throws this lastResortError.
To help prospective catchers to,
reliably-enough, distinguish this caught error from other errors,
we add a property
named by the PanicEndowmentSymbol registered symbol. We use a
registered symbol rather than a novel subclass of Error to avoid
Eval Twin Problems.
However, as a necessary price for avoiding Eval Twim Problems, this
marking is forgeable -- anyone can create and throw a similar error.
We also export this error so that importers can use it as an identity check.
This is not forgeable, i.e., not give false positives, but due to the
Eval Twin Problem, may produce falso negatives. Use this identity check
with caution.
Last resort fallback that violates the
panic
spec by throwing rather than immediately exiting, throws thislastResortError
. To help prospective catchers to, reliably-enough, distinguish this caught error from other errors, we add a property named by thePanicEndowmentSymbol
registered symbol. We use a registered symbol rather than a novel subclass of Error to avoid Eval Twin Problems. However, as a necessary price for avoiding Eval Twim Problems, this marking is forgeable -- anyone can create and throw a similar error.We also export this error so that importers can use it as an identity check. This is not forgeable, i.e., not give false positives, but due to the Eval Twin Problem, may produce falso negatives. Use this identity check with caution.