Error used for rejections raised in the JS layer (missing native init, argument validation). Carries the same code shape as native rejections, so error.code works uniformly regardless of which side rejected.
code
error.code
Readonly
Error used for rejections raised in the JS layer (missing native init, argument validation). Carries the same
codeshape as native rejections, soerror.codeworks uniformly regardless of which side rejected.