Author: Alexandru Stanoi Date: 2007-01-08 14:08:24 +0100 (Mon, 08 Jan 2007) New Revision: 4471
Log: - Added exception class ezcBaseExtensionNotFoundException to be thrown when an extension is required but is not found. Added: trunk/Base/src/exceptions/extension_not_found.php Modified: trunk/Base/ChangeLog trunk/Base/src/base_autoload.php Modified: trunk/Base/ChangeLog =================================================================== --- trunk/Base/ChangeLog 2007-01-08 11:36:39 UTC (rev 4470) +++ trunk/Base/ChangeLog 2007-01-08 13:08:24 UTC (rev 4471) @@ -1,3 +1,10 @@ +1.3beta1 - [RELEASEDATE] +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +- Added exception class ezcBaseExtensionNotFoundException to be thrown when an + extension is required but is not found. + + 1.2 - Monday 18 December 2006 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Modified: trunk/Base/src/base_autoload.php =================================================================== --- trunk/Base/src/base_autoload.php 2007-01-08 11:36:39 UTC (rev 4470) +++ trunk/Base/src/base_autoload.php 2007-01-08 13:08:24 UTC (rev 4471) @@ -19,6 +19,7 @@ 'ezcBaseAutoloadException' => 'Base/exceptions/autoload.php', 'ezcBaseDoubleClassRepositoryPrefixException' => 'Base/exceptions/double_class_repository_prefix.php', + 'ezcBaseExtensionNotFoundException' => 'Base/exceptions/extension_not_found.php', 'ezcBaseFileNotFoundException' => 'Base/exceptions/file_not_found.php', 'ezcBaseFileIoException' => 'Base/exceptions/file_io.php', 'ezcBaseFilePermissionException' => 'Base/exceptions/file_permission.php', Added: trunk/Base/src/exceptions/extension_not_found.php =================================================================== --- trunk/Base/src/exceptions/extension_not_found.php 2007-01-08 11:36:39 UTC (rev 4470) +++ trunk/Base/src/exceptions/extension_not_found.php 2007-01-08 13:08:24 UTC (rev 4471) @@ -0,0 +1,38 @@ +<?php +/** + * File containing the ezcBaseExtensionNotFoundException class + * + * @package Base + * @version //autogen// + * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. + * @license http://ez.no/licenses/new_bsd New BSD License + */ + +/** + * ezcBaseExtensionNotFoundException is thrown when a requested PHP extension was not found. + * + * @package Base + * @version //autogen// + */ +class ezcBaseExtensionNotFoundException extends ezcBaseException +{ + /** + * Constructs a new ezcBaseExtensionNotFoundException. + * + * @param string $name The name of the extension + * @param string $version The version of the extension + * @param string $message Additional text + */ + function __construct( $name, $version = null, $message = null ) + { + if ( $version === null ) + { + parent::__construct( "The extension '{$name}' could not be found. {$message}" ); + } + else + { + parent::__construct( "The extension '{$name}' with version '{$version}' could not be found. {$message}" ); + } + } +} +?> Property changes on: trunk/Base/src/exceptions/extension_not_found.php ___________________________________________________________________ Name: svn:eol-style + native -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components