<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@friendlycaptcha/sdk](./sdk.md) &gt; [FRCWidgetErrorEventData](./sdk.frcwidgeterroreventdata.md)

## FRCWidgetErrorEventData interface

Payload of the `"frc:widget.error"` event.

**Signature:**

```typescript
export interface FRCWidgetErrorEventData 
```

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[error](./sdk.frcwidgeterroreventdata.error.md)


</td><td>


</td><td>

[WidgetErrorData](./sdk.widgeterrordata.md)


</td><td>

The error that caused the state change.


</td></tr>
<tr><td>

[id](./sdk.frcwidgeterroreventdata.id.md)


</td><td>


</td><td>

string


</td><td>

The widget ID that the event originated from.


</td></tr>
<tr><td>

[name](./sdk.frcwidgeterroreventdata.name.md)


</td><td>


</td><td>

typeof [FRCWidgetErrorEventName](./sdk.frcwidgeterroreventname.md)


</td><td>

`"frc:widget.error"`


</td></tr>
<tr><td>

[response](./sdk.frcwidgeterroreventdata.response.md)


</td><td>


</td><td>

string


</td><td>

The current `frc-captcha-response` value.


</td></tr>
<tr><td>

[state](./sdk.frcwidgeterroreventdata.state.md)


</td><td>


</td><td>

"error"


</td><td>


</td></tr>
</tbody></table>

