ErrorNoticecomponent
ErrorNotice({ reason }: ErrorNoticeProps): ReactElement| Param | Type | |
|---|---|---|
reason | ErrorNoticeProps | The caught error to display. required |
| Return | |
|---|---|
ReactElement | An error <Notice> containing the message and a <RetryButton>. |
Render a caught error as an inline <Notice> with a retry button.
- Uses
getMessage()to extract a human-readable message, falling back to"Unknown error".
Examples
<ErrorNotice reason={thrown} />