<?php

namespace App\Exceptions;

use Exception;

/**
 * Thrown when a file write is attempted with no usable storage configuration —
 * neither the `storage_settings` row nor the CLOUDFLARE_R2_* environment
 * values supply a bucket and credentials.
 *
 * Deliberately loud rather than a silent fallback to the local disk: on a
 * multi-server or shared-hosting deployment a quiet fallback scatters tenant
 * files across whichever machine happened to serve the request, where they are
 * invisible to every other node and to the usage accounting.
 */
class StorageNotConfiguredException extends Exception
{
    //
}
