UNPKG

@scaleway/sdk-client

Version:
16 lines (15 loc) 582 B
import type { JSONObject } from '../../../helpers/json.js'; import { ScalewayError } from '../scw-error.js'; /** * ResourceLocked error happens when a resource is locked by trust and safety. * * @public */ export declare class ResourceLockedError extends ScalewayError { readonly status: number; readonly body: JSONObject; readonly resource: string; readonly resourceId: string; constructor(status: number, body: JSONObject, resource: string, resourceId: string); static fromJSON(status: number, obj: Readonly<JSONObject>): ResourceLockedError | null; }