index.en-US.md 960 Bytes
Newer Older
ddcat1115's avatar
ddcat1115 committed
1 2 3 4 5 6 7 8 9 10 11 12
---
title: Exception
cols: 1
order: 5
---

Exceptions page is used to provide feedback on specific abnormal state. Usually, it contains an explanation of the error status, and provides users with suggestions or operations, to prevent users from feeling lost and confused.

## API

Property | Description | Type | Default
---------|-------------|------|--------
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
13
| backText | default return button text | ReactNode | back to home |
ddcat1115's avatar
ddcat1115 committed
14 15 16 17 18
type | type of exception, the corresponding default `title`, `desc`, `img` will be given if set, which can be overridden by explicit setting of `title`, `desc`, `img` | Enum {'403', '404', '500'} | -
title | title | ReactNode | -
desc | supplementary description | ReactNode | -
img | the url of background image | string | -
actions | suggested operations, a default 'Home' link will show if not set | ReactNode | -
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
19 20
linkElement | to specify the element of link | string\|ReactElement | 'a'
redirect | redirect path | string | '/'