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
| Parameter | Type |
|---|---|
message | string |
props? | object |
props.cluster? | string |
props.namespace? | string |
props.status? | number |
Returns
Overrides
Error.constructor
Defined in
src/lib/k8s/api/v2/ApiError.tsx:29
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
cluster? | public | string | Cluster name | - | src/lib/k8s/api/v2/ApiError.tsx:27 |
message | public | string | - | Error.message | src/lib/k8s/api/v2/ApiError.tsx:30 |
namespace? | public | string | Namespace of the requested resource | - | src/lib/k8s/api/v2/ApiError.tsx:25 |
status? | public | number | HTTP status code of the error | - | src/lib/k8s/api/v2/ApiError.tsx:23 |