PluginProbe
Auto Alt Text / trunk
Auto Alt Text vtrunk
3.0.3 2.8.2 1.3.1 1.3.2 2.0.0 2.1.0 2.1.1 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 All 28 releases
auto-alt-text / src / App / Domain / Exceptions / EmptyResponseException.php

EmptyResponseException.php in Auto Alt Text trunk, at src/App/Domain/Exceptions/EmptyResponseException.php

27 lines 642 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AATXT\App\Domain\Exceptions;
4
5 use Exception;
6
7 /**
8 * Exception thrown when an AI provider returns an empty response.
9 *
10 * This exception indicates that the AI provider successfully responded
11 * but returned an empty or invalid alt text.
12 */
13 class EmptyResponseException extends Exception
14 {
15 /**
16 * Constructor
17 *
18 * @param string $provider The provider name that returned empty response
19 */
20 public function __construct(string $provider = 'AI Provider')
21 {
22 parent::__construct(
23 sprintf('%s returned an empty response. Unable to generate alt text.', $provider)
24 );
25 }
26 }
27