Converts a scope-exit failure into the error passed to recovery handlers.
Converts an in-band failure into a JavaScript error. Existing ShajaraError failures are returned unchanged. External failures carrying an Error return the original error.
ShajaraError
Error
Error represented by the failure.
Converts a scope-exit failure into the error passed to recovery handlers.