forked from friendica/friendica-addons
33 lines
793 B
PHP
33 lines
793 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Akeeba Engine
|
||
|
*
|
||
|
* @package akeebaengine
|
||
|
* @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||
|
* @license GNU General Public License version 3, or later
|
||
|
*/
|
||
|
|
||
|
namespace Akeeba\Engine\Postproc\Connector\S3v4\Exception;
|
||
|
|
||
|
// Protection against direct access
|
||
|
defined('AKEEBAENGINE') or die();
|
||
|
|
||
|
use Exception;
|
||
|
|
||
|
/**
|
||
|
* Invalid Amazon S3 endpoint
|
||
|
*/
|
||
|
class InvalidEndpoint extends ConfigurationError
|
||
|
{
|
||
|
public function __construct(string $message = "", int $code = 0, Exception $previous = null)
|
||
|
{
|
||
|
if (empty($message))
|
||
|
{
|
||
|
$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';
|
||
|
}
|
||
|
|
||
|
parent::__construct($message, $code, $previous);
|
||
|
}
|
||
|
|
||
|
}
|