# auto-alt-text/2.7.0/src/App/Domain/Exceptions/UnsupportedGeneratorException.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/UnsupportedGeneratorException.php
- Raw: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/raw/src/App/Domain/Exceptions/UnsupportedGeneratorException.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/UnsupportedGeneratorException.php#L10-L20`.

```php
<?php

namespace AATXT\App\Domain\Exceptions;

use Exception;

/**
 * Exception thrown when trying to create a generator for an unsupported type.
 *
 * This exception is thrown by the AltTextGeneratorFactory when a generator
 * type is requested that hasn't been registered in the factory.
 */
class UnsupportedGeneratorException extends Exception
{
    /**
     * Constructor
     *
     * @param string $type The unsupported generator type
     */
    public function __construct(string $type)
    {
        parent::__construct(
            sprintf('Unsupported generator type: "%s". Please register this generator type in the factory.', $type)
        );
    }
}

```
