ErrorPagecomponent
ErrorPage({ reason }: ErrorPageProps): ReactElement| Param | Type | |
|---|---|---|
reason | ErrorPageProps | The caught error to display. required |
| Return | |
|---|---|
ReactElement | A centered error page containing the message and a <RetryButton>. |
Render a caught error as a full-page <Page> with an error <Card> and retry button.
- Uses
getMessage()to extract a human-readable message, falling back to"Unknown error".
Examples
<ErrorPage reason={thrown} />