onException()
onException: (error)
Description​
onException()
is called when an error occurs in XR. Called with the error object.
Parameters​
Parameter | Description |
---|---|
error | The error object that was thrown |
Example​
XR8.addCameraPipelineModule({
name: 'mycamerapipelinemodule',
onException : (error) => {
console.error('XR threw an exception', error)
},
})