Represents an error in the Iaptic purchase flow
try { await iaptic.order(productOffer);} catch (error) { if (error instanceof IapticError) { trackAnalyticsEvent(error.code); if (error.severity === IapticErrorSeverity.INFO) { console.log('Info:', error.localizedMessage); return; } Alert.alert(error.localizedTitle, error.localizedMessage); } else { Alert.alert('Unknown error', error.message); }} Copy
try { await iaptic.order(productOffer);} catch (error) { if (error instanceof IapticError) { trackAnalyticsEvent(error.code); if (error.severity === IapticErrorSeverity.INFO) { console.log('Info:', error.localizedMessage); return; } Alert.alert(error.localizedTitle, error.localizedMessage); } else { Alert.alert('Unknown error', error.message); }}
Optional
Readonly
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Represents an error in the Iaptic purchase flow
Example: Handling errors