UNPKG

@scaleway/sdk-client

Version:
15 lines (14 loc) 510 B
import type { JSONObject } from '../../../helpers/json.js'; import { ScalewayError } from '../scw-error.js'; /** * OutOfStock error happens when stocks are empty for the resource. * * @public */ export declare class OutOfStockError extends ScalewayError { readonly status: number; readonly body: JSONObject; readonly resource: string; constructor(status: number, body: JSONObject, resource: string); static fromJSON(status: number, obj: Readonly<JSONObject>): OutOfStockError | null; }