Author: Derick Rethans Date: 2006-01-13 09:30:57 +0100 (Fri, 13 Jan 2006) New Revision: 1804
Log: - Added missing files. Added: packages/Configuration/trunk/src/exceptions/group_exists_already.php packages/Configuration/trunk/src/exceptions/invalid_reader_class.php packages/Configuration/trunk/src/exceptions/invalid_suffix.php packages/Configuration/trunk/src/exceptions/no_config.php packages/Configuration/trunk/src/exceptions/no_config_object.php packages/Configuration/trunk/src/exceptions/parse_error.php packages/Configuration/trunk/src/exceptions/read_failed.php packages/Configuration/trunk/src/exceptions/setting_wrong_type.php packages/Configuration/trunk/src/exceptions/settingname_not_string.php packages/Configuration/trunk/src/exceptions/unknown_config.php packages/Configuration/trunk/src/exceptions/unknown_group.php packages/Configuration/trunk/src/exceptions/unknown_setting.php packages/Configuration/trunk/src/exceptions/write_failed.php Added: packages/Configuration/trunk/src/exceptions/group_exists_already.php =================================================================== --- packages/Configuration/trunk/src/exceptions/group_exists_already.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/group_exists_already.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,24 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if a group is tried to be added, while it already + * exists. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationGroupExistsAlreadyException extends ezcConfigurationException +{ + function __construct( $groupName ) + { + parent::__construct( "The settings group <{$groupName}> exists already." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/group_exists_already.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/invalid_reader_class.php =================================================================== --- packages/Configuration/trunk/src/exceptions/invalid_reader_class.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/invalid_reader_class.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,23 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if an invalid class is passed as INI reader to the manager. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationInvalidReaderClassException extends ezcConfigurationException +{ + function __construct( $readerClass ) + { + parent::__construct( "Class <{$readerClass}> does not exist, or does not implement the <ezcConfigurationReader> interface." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/invalid_reader_class.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/invalid_suffix.php =================================================================== --- packages/Configuration/trunk/src/exceptions/invalid_suffix.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/invalid_suffix.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,24 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the current location is not valid. This means it + * is impossible to read or write using the location values. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationInvalidSuffixException extends ezcConfigurationException +{ + function __construct( $path, $expectedSuffix ) + { + parent::__construct( "The path <{$path}> has an invalid suffix (should be <{$expectedSuffix}>)." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/invalid_suffix.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/no_config.php =================================================================== --- packages/Configuration/trunk/src/exceptions/no_config.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/no_config.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,20 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if no configuration object is present to work on. + * Cannot continue operation. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationNoConfigException extends ezcConfigurationException +{ +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/no_config.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/no_config_object.php =================================================================== --- packages/Configuration/trunk/src/exceptions/no_config_object.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/no_config_object.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,24 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if no configuration object has been set to operate + * on. The operation cannot continue with this object. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationNoConfigObjectException extends ezcConfigurationException +{ + function __construct() + { + parent::__construct( 'There is no config object to save.' ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/no_config_object.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/parse_error.php =================================================================== --- packages/Configuration/trunk/src/exceptions/parse_error.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/parse_error.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,24 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if there were errors while parsing a file while the + * parser was not in validation mode. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationParseErrorException extends ezcConfigurationException +{ + function __construct( $fileName, $lineNr, $description ) + { + parent::__construct( "{$description} in <{$fileName}>, line <{$lineNr}>." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/parse_error.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/read_failed.php =================================================================== --- packages/Configuration/trunk/src/exceptions/read_failed.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/read_failed.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,19 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the read operation for the configuration failed. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationReadFailedException extends ezcConfigurationException +{ +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/read_failed.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/setting_wrong_type.php =================================================================== --- packages/Configuration/trunk/src/exceptions/setting_wrong_type.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/setting_wrong_type.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,24 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the accessed setting is not of the requested + * type. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationSettingWrongTypeException extends ezcConfigurationException +{ + function __construct( $groupName, $settingName, $expectedType, $settingType ) + { + parent::__construct( "The expected type for the setting <{$groupName}>, <{$settingName}> is <{$expectedType}>. The setting was of type <{$settingType}>." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/setting_wrong_type.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/settingname_not_string.php =================================================================== --- packages/Configuration/trunk/src/exceptions/settingname_not_string.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/settingname_not_string.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,23 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the name of a setting is not a string. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationSettingnameNotStringException extends ezcConfigurationException +{ + function __construct( $settingName ) + { + parent::__construct( 'The setting name <' . serialize( $settingName ) . '> is not a string.' ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/settingname_not_string.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/unknown_config.php =================================================================== --- packages/Configuration/trunk/src/exceptions/unknown_config.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/unknown_config.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,23 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the specified configuration does not exist in the system. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationUnknownConfigException extends ezcConfigurationException +{ + function __construct( $configurationName ) + { + parent::__construct( "The configuration <{$configurationName}> does not exist." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/unknown_config.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/unknown_group.php =================================================================== --- packages/Configuration/trunk/src/exceptions/unknown_group.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/unknown_group.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,23 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the specified group does not exist in the settings. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationUnknownGroupException extends ezcConfigurationException +{ + function __construct( $groupName ) + { + parent::__construct( "The settings group <{$groupName}> does not exist." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/unknown_group.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/unknown_setting.php =================================================================== --- packages/Configuration/trunk/src/exceptions/unknown_setting.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/unknown_setting.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,23 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the specified setting does not exist in the settings. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationUnknownSettingException extends ezcConfigurationException +{ + function __construct( $groupName, $settingName ) + { + parent::__construct( "The setting <{$groupName}>, <{$settingName}> does not exist." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/unknown_setting.php ___________________________________________________________________ Name: svn:eol-style + native Added: packages/Configuration/trunk/src/exceptions/write_failed.php =================================================================== --- packages/Configuration/trunk/src/exceptions/write_failed.php 2006-01-13 08:00:12 UTC (rev 1803) +++ packages/Configuration/trunk/src/exceptions/write_failed.php 2006-01-13 08:30:57 UTC (rev 1804) @@ -0,0 +1,23 @@ +<?php +/** + * File containing the ezcConfigurationException class + * + * @package Configuration + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ +/** + * Exception that is thrown if the write operation for the configuration failed. + * + * @package Configuration + * @version //autogen// + */ +class ezcConfigurationWriteFailedException extends ezcConfigurationException +{ + function __construct( $path ) + { + parent::__construct( "The file could not be stored in <{$path}>." ); + } +} +?> Property changes on: packages/Configuration/trunk/src/exceptions/write_failed.php ___________________________________________________________________ Name: svn:eol-style + native -- svn-components mailing list [email protected] http://lists.ez.no/mailman/listinfo/svn-components
