@scaleway/sdk-client
Version:
Scaleway SDK Client
17 lines (16 loc) • 619 B
TypeScript
import type { JSONObject } from '../../../helpers/json.js';
import { ScalewayError } from '../scw-error.js';
/**
* AlreadyExists error is used when a resource already exists.
*
* @public
*/
export declare class AlreadyExistsError extends ScalewayError {
readonly status: number;
readonly body: JSONObject;
readonly resource: string;
readonly resourceId: string;
readonly helpMessage: string;
constructor(status: number, body: JSONObject, resource: string, resourceId: string, helpMessage: string);
static fromJSON(status: number, obj: Readonly<JSONObject>): AlreadyExistsError | null;
}