/**
  * Constructs a new ezcConfigurationSettingWrongTypeException.
  *
  * @param string $groupName
  * @param string $settingName
  * @param string $expectedType
  * @param string $settingType
  * @return void
  */
 function __construct($groupName, $settingName, $expectedType, $settingType)
 {
     parent::__construct("The expected type for the setting '{$groupName}', '{$settingName}' is '{$expectedType}'. The setting was of type '{$settingType}'.");
 }
 /**
  * Constructs a new ezcConfigurationSettingnameNotStringException for setting $settingName.
  *
  * @param string $settingName
  * @return void
  */
 function __construct($settingName)
 {
     $settingNameType = gettype($settingName);
     parent::__construct("The setting name that was passed is not a string, but an '{$settingNameType}'.");
 }
 /**
  * Constructs a new ezcConfigurationNoConfigObjectException.
  *
  * @return void
  */
 function __construct()
 {
     parent::__construct('There is no config object to save.');
 }
Example #4
0
 /**
  * Constructs a new ezcConfigurationWriteFailedException.
  *
  * @param string $path
  * @return void
  */
 function __construct($path)
 {
     parent::__construct("The file could not be stored in '{$path}'.");
 }
 /**
  * Constructs a new ezcConfigurationGroupExistsAlreadyException for the group $groupName.
  *
  * @param string $groupName
  * @return void
  */
 function __construct($groupName)
 {
     parent::__construct("The settings group '{$groupName}' exists already.");
 }
 /**
  * Constructs a new ezcConfigurationManagerNotInitializedException.
  *
  * @return void
  */
 function __construct()
 {
     parent::__construct("The manager has not been initialized.");
 }
Example #7
0
 /**
  * Constructs a new ezcConfigurationUnknownSettingException.
  *
  * @param string $groupName
  * @param string $settingName
  * @return void
  */
 function __construct($groupName, $settingName)
 {
     parent::__construct("The setting '{$groupName}', '{$settingName}' does not exist.");
 }
 /**
  * Constructs a new ezcConfigurationParseErrorException.
  *
  * @param string $fileName The name of the file with the parse error.
  * @param int    $lineNr
  * @param string $description
  * @return void
  */
 function __construct($fileName, $lineNr, $description)
 {
     parent::__construct("{$description} in '{$fileName}', line '{$lineNr}'.");
 }
 /**
  * Constructs a new ezcConfigurationInvalidSuffixException.
  *
  * @param string $path
  * @param string $expectedSuffix
  * @return void
  */
 function __construct($path, $expectedSuffix)
 {
     parent::__construct("The path '{$path}' has an invalid suffix (should be '{$expectedSuffix}').");
 }
 /**
  * Constructs a new ezcConfigurationUnknownConfigException.
  *
  * @param string $configurationName
  * @return void
  */
 function __construct($configurationName)
 {
     parent::__construct("The configuration '{$configurationName}' does not exist.");
 }
 /**
  * Constructs a new ezcConfigurationInvalidReaderClassException for the $readerClass.
  *
  * @param string $readerClass
  * @return void
  */
 function __construct($readerClass)
 {
     parent::__construct("Class '{$readerClass}' does not exist, or does not implement the 'ezcConfigurationReader' interface.");
 }