Type alias LensExecutionError

LensExecutionError: NamedError<"LensExecutionError">

This error occurs if a Lens is unable to continue rendering.

If this error occurs, Camera Kit automatically removes the Lens from the session. It's always a good idea to handle this error and update the user experience accordingly. For example, you could remove the faulty Lens from your Lens selection UI.

cameraKitSession.events.addEventListener('error', ({ detail }) => {
if (detail.error.name === 'LensExecutionError') {
console.log(`Lens ${detail.lens.name} encountered an error and was removed. Please pick a different lens.`)
}
})

Generated using TypeDoc