namespace FrameProcessor.UrlFetch;

/// <summary>
/// Thrown by <see cref="IImageUrlFetcher"/> when a remote image fetch fails in a way
/// the caller should surface as <c>502 Bad Gateway</c> per SPEC.md §4.2 — timeout,
/// non-2xx status, response exceeding <c>UrlFetch.MaxBytes</c>, or redirect-loop /
/// excess redirect hops.
/// </summary>
public sealed class ImageFetchException : Exception
{
    public ImageFetchException(string message) : base(message)
    {
    }

    public ImageFetchException(string message, Exception innerException) : base(message, innerException)
    {
    }
}
