Error payload returned when Push operations fail.
All rejections from PushClient methods use this shape. The error field contains one of the PushErrorCode strings for programmatic error handling.
error
try { await client.addCredentialFromUri(uri);} catch (err) { const pushError = err as PushError; if (pushError.error === 'invalid_uri') { // handle invalid URI }} Copy
try { await client.addCredentialFromUri(uri);} catch (err) { const pushError = err as PushError; if (pushError.error === 'invalid_uri') { // handle invalid URI }}
Optional
Static
Error payload returned when Push operations fail.
Remarks
All rejections from PushClient methods use this shape. The
errorfield contains one of the PushErrorCode strings for programmatic error handling.Example