import { ArgsTable } from '@storybook/addon-docs/blocks';
import { ErrorHandler } from '../ErrorHandler';

# Error handler

Error handler appears instead of content to provide information about the occurred error.

## Architecture

Use conditional render inside your component which displays this view if an axios error occurred.
If you want a button to be displayed beneath the error message which would lead to a specific route on click, pass `backRoute` property to the ErrorHandler component.

## Props

<ArgsTable of={ErrorHandler} />
