| Server IP : 217.160.0.95 / Your IP : 216.73.216.74 Web Server : Apache System : Linux infong-uk56 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64 User : u78863098 ( 10368940) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/oneclick/WordPress/7.0/601/scripts/exceptions/ |
Upload File : |
<?php
namespace Exceptions;
class ConfigurationException extends \Exception
{
const CONFIG_NOT_FOUND = 1;
const CONFIG_NOT_FOUND_MESSAGE = 'wp-config.php not found in path %s';
const CONFIG_PATH_NOT_EXISTING = 2;
const CONFIG_PATH_NOT_EXISTING_MESSAGE = 'configuration base path not existing %s';
const CONFIG_EMPTY = 3;
const CONFIG_EMPTY_MESSAGE = 'configuration is empty in path %s';
/**
* @param int $type
* @param array $params
* @return ConfigurationException
*/
public static function createException($type, $params = null)
{
if (!is_array($params) && !empty($params)) {
$params = array($params);
}
return new ConfigurationException(vsprintf(self::CONFIG_NOT_FOUND_MESSAGE, $params), $type);
}
}