emitError
Emits errors generated during the SDK process.
Last updated
Emits errors generated during the SDK process.
Notifies internal SDK errors during execution.
Event: emitError
Type: FacephiSdkProviderCustomEvent<ErrorData> | CustomEvent<ErrorData>
provider.addEventListener('emitError', onEmitError);detail: {
statusCode?: number,
message?: string,
exceptionType?: string,
code?: string
}Allows the application to react to SDK failures.
See the full list at Error codes.
Last updated
<facephi-sdk-provider
apikey={process.env.FACEPHI_SDK_APIKEY}
onEmitError={onEmitError}
/>