Error thrown or used to reject a Promise by this package.
Errors from the native SDK carry the same code property.
code
try { await tealium.track("checkout_started");} catch (error) { if ((error as TealiumError).code === ErrorCode.INSTANCE_SHUT_DOWN) { // Create a new instance before tracking again. }} Copy
try { await tealium.track("checkout_started");} catch (error) { if ((error as TealiumError).code === ErrorCode.INSTANCE_SHUT_DOWN) { // Create a new instance before tracking again. }}
Optional
Machine-readable error code. Compare it against ErrorCode.
Error thrown or used to reject a Promise by this package.
Errors from the native SDK carry the same
codeproperty.Example