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 / UnsupportedGeneratorException.php

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

27 lines 666 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 trying to create a generator for an unsupported type.
9 *
10 * This exception is thrown by the AltTextGeneratorFactory when a generator
11 * type is requested that hasn't been registered in the factory.
12 */
13 class UnsupportedGeneratorException extends Exception
14 {
15 /**
16 * Constructor
17 *
18 * @param string $type The unsupported generator type
19 */
20 public function __construct(string $type)
21 {
22 parent::__construct(
23 sprintf('Unsupported generator type: "%s". Please register this generator type in the factory.', $type)
24 );
25 }
26 }
27