+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "ErrorBoundary"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++
## ErrorBoundary class
Signature
```typescript
export declare class ErrorBoundary extends PureComponent
```
Import
```typescript
import { ErrorBoundary } from '@grafana/ui';
```
Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [state](#state-property) | | State
| |
Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [componentDidCatch(error, errorInfo)](#componentdidcatch-method) | | |
| [render()](#render-method) | | |
### state property
Signature
```typescript
readonly state: State;
```
### componentDidCatch method
Signature
```typescript
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| error | Error
| |
| errorInfo | ErrorInfo
| |
Returns:
`void`
### render method
Signature
```typescript
render(): React.ReactNode;
```
Returns:
`React.ReactNode`