# auto-alt-text/2.7.0/src/App/Domain/Exceptions/EmptyResponseException.php

Auto Alt Text, version 2.7.0. 27 lines.

- Page: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/src/App/Domain/Exceptions/EmptyResponseException.php
- Raw: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/raw/src/App/Domain/Exceptions/EmptyResponseException.php
- Modified: 2026-01-14T13:38:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/src/App/Domain/Exceptions/EmptyResponseException.php#L10-L20`.

```php
<?php

namespace AATXT\App\Domain\Exceptions;

use Exception;

/**
 * Exception thrown when an AI provider returns an empty response.
 *
 * This exception indicates that the AI provider successfully responded
 * but returned an empty or invalid alt text.
 */
class EmptyResponseException extends Exception
{
    /**
     * Constructor
     *
     * @param string $provider The provider name that returned empty response
     */
    public function __construct(string $provider = 'AI Provider')
    {
        parent::__construct(
            sprintf('%s returned an empty response. Unable to generate alt text.', $provider)
        );
    }
}

```
