[s3_storage] Bump version of akeeba/s3 to version 2.3.1
[friendica-addons.git/.git] / s3_storage / vendor / akeeba / s3 / src / Exception / InvalidEndpoint.php
1 <?php
2 /**
3  * Akeeba Engine
4  *
5  * @package   akeebaengine
6  * @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
7  * @license   GNU General Public License version 3, or later
8  */
9
10 namespace Akeeba\S3\Exception;
11
12 // Protection against direct access
13 defined('AKEEBAENGINE') || die();
14
15 use Exception;
16
17 /**
18  * Invalid Amazon S3 endpoint
19  */
20 class InvalidEndpoint extends ConfigurationError
21 {
22         public function __construct(string $message = "", int $code = 0, Exception $previous = null)
23         {
24                 if (empty($message))
25                 {
26                         $message = 'The custom S3 endpoint provided is invalid. Do NOT include the protocol (http:// or https://). Valid examples are s3.example.com and www.example.com/s3Api';
27                 }
28
29                 parent::__construct($message, $code, $previous);
30         }
31
32 }