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

FetchError interface

Error type for fetch function in BackendSrv

Signature

typescript
export interface FetchError<T extends FetchErrorDataProps = any> 

Import

typescript
import { FetchError } from '@grafana/runtime';

Properties

PropertyTypeDescription
cancelledboolean
configBackendSrvRequest
dataT
isHandledboolean
statusnumber
statusTextstring

cancelled property

Signature

typescript
cancelled?: boolean;

config property

Signature

typescript
config: BackendSrvRequest;

data property

Signature

typescript
data: T;

isHandled property

Signature

typescript
isHandled?: boolean;

status property

Signature

typescript
status: number;

statusText property

Signature

typescript
statusText?: string;