Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

ErrorBoundary class

Signature

typescript
export declare class ErrorBoundary extends PureComponent<Props, State> 

Import

typescript
import { ErrorBoundary } from '@grafana/ui';

Properties

PropertyModifiersTypeDescription
stateState

Methods

MethodModifiersDescription
componentDidCatch(error, errorInfo)
render()

state property

Signature

typescript
readonly state: State;

componentDidCatch method

Signature

typescript
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;

Parameters

ParameterTypeDescription
errorError
errorInfoErrorInfo

Returns:

void

render method

Signature

typescript
render(): React.ReactNode;

Returns:

React.ReactNode