/**
 * Shared error types for cloud deployment adapters.
 */
export class CloudflareApiError extends Error {
    status;
    cloudflareErrors;
    code = 'CLOUDFLARE_API_ERROR';
    constructor(message, status, cloudflareErrors = []) {
        super(message);
        this.status = status;
        this.cloudflareErrors = cloudflareErrors;
    }
}
export class CloudflareTokenInvalidError extends Error {
    code = 'CLOUDFLARE_TOKEN_INVALID';
    constructor(message) {
        super(message);
    }
}
export class CloudflareAccountMissingError extends Error {
    code = 'CLOUDFLARE_ACCOUNT_MISSING';
    constructor() {
        super('No Cloudflare account is accessible with the provided API token');
    }
}
