]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - lib/unknownextensionmimeexception.php
[DATABASE][User_openid_prefs] Fix wrong type for modified column
[quix0rs-gnu-social.git] / lib / unknownextensionmimeexception.php
1 <?php
2 if (!defined('GNUSOCIAL')) { exit(1); }
3
4 /**
5  * Class for unknown extension MIME type exception
6  *
7  * Thrown when we don't know the MIME type for a given file extension.
8  *
9  * @category Exception
10  * @package  GNUsocial
11  * @author   Mikael Nordfeldth <mmn@hethane.se>
12  * @license  https://www.gnu.org/licenses/agpl-3.0.html
13  * @link     https://gnu.io/social
14  */
15
16 class UnknownExtensionMimeException extends ServerException
17 {
18     public function __construct($ext)
19     {
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));
23
24         parent::__construct($msg);
25     }
26 }