2 if (!defined('GNUSOCIAL')) { exit(1); }
5 * Class for unknown extension MIME type exception
7 * Thrown when we don't know the MIME type for a given file extension.
11 * @author Mikael Nordfeldth <mmn@hethane.se>
12 * @license https://www.gnu.org/licenses/agpl-3.0.html
13 * @link https://gnu.io/social
16 class UnknownExtensionMimeException extends ServerException
18 public function __construct($ext)
20 // TRANS: We accept the file type (we probably just accept all files)
21 // TRANS: but don't know the file extension for it. %1$s is the extension.
22 $msg = sprintf(_('Unknown MIME type for file extension: %1$s'), _ve($ext));
24 parent::__construct($msg);