Parse a Stripe SDK error (or any thrown value) into a typed exception.
Understands both stripe-node error instances and plain objects in Stripe's API error shape. See the error guide for the full code map.
stripe-node
Parse a Stripe SDK error (or any thrown value) into a typed exception.
Understands both
stripe-nodeerror instances and plain objects in Stripe's API error shape. See the error guide for the full code map.