Passer au contenu principal

onException()

onException: (error)

Description

onException() is called when an error occurs in XR. Called with the error object.

Parameters

ParameterDescription
errorThe error object that was thrown

Example

XR8.addCameraPipelineModule({
name: 'mycamerapipelinemodule',
onException : (error) => {
console.error('XR threw an exception', error)
},
})