For the complete documentation index, see llms.txt. This page is also available as Markdown.

emitError

Emits errors generated during the SDK process.

Details

Notifies internal SDK errors during execution.

Event: emitError

Type: FacephiSdkProviderCustomEvent<ErrorData> | CustomEvent<ErrorData>

Syntax

provider.addEventListener('emitError', onEmitError);

Received object

detail: {
  statusCode?: number,
  message?: string,
  exceptionType?: string,
  code?: string
}

Description

Allows the application to react to SDK failures.

Considerations

See the full list at Error codes.


Example

Last updated