Skip to main content

Class: ApiError

Error with additional information about the request that casued it Used for backend response error handling

Extends

  • Error

Constructors

new ApiError()

new ApiError(message: string, props?: object): ApiError

Parameters

ParameterType
messagestring
props?object
props.cluster?string
props.namespace?string
props.status?number

Returns

ApiError

Overrides

Error.constructor

Defined in

src/lib/k8s/api/v2/ApiError.tsx:29

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
cluster?publicstringCluster name-src/lib/k8s/api/v2/ApiError.tsx:27
messagepublicstring-Error.messagesrc/lib/k8s/api/v2/ApiError.tsx:30
namespace?publicstringNamespace of the requested resource-src/lib/k8s/api/v2/ApiError.tsx:25
status?publicnumberHTTP status code of the error-src/lib/k8s/api/v2/ApiError.tsx:23