<?php
/**
 * This file is part of the set of the DDR Simple API definition. It contains the
 * definition of the {@link InitializationException} class.
 * 
 * @author Sylvain Lequeux
 * @author Francois Daoust <fd@w3.org>
 * @package AskPythia
 * @subpackage Interface
 * @version $Revision: 1.8 $
 * @license http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231.html W3C Software Notice and License
 * @copyright Copyright (c) 2009, W3C (MIT, ERCIM, Keio)
 */

/**
 * Include the base {@link DDRException} class description.
 */
require_once(dirname(__FILE__).'/ddrException.php');

/**
 * {@link http://www.w3.org/TR/DDR-Simple-API/#sec-InitializationException InitializationException}
 * class as defined in the {@link http://www.w3.org/TR/DDR-Simple-API/
 * DDR Simple API} standard.
 * 
 * This exception represents an error during the initialization phase of the
 * DDR Simple API. It is thrown only by the {@link Service::initialize()}
 * and the {@link ServiceFactory::newService()} methods.
 * 
 * Implementations may define specific codes for different kinds of failures
 * during initialization.
 *
 * The exception should be thrown using the constructor of the base Exception
 * class: throw new InitializationException([$message  [, $code  [, $previous ]]]).
 * 
 * @author Sylvain Lequeux
 * @author Francois Daoust <fd@w3.org>
 * @package AskPythia
 * @subpackage Interface
 * @link http://www.w3.org/TR/DDR-Simple-API/ Device Description Repository Simple API
 * @version $Revision: 1.8 $
 * @license http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231.html W3C Software Notice and License
 * @copyright Copyright (c) 2009, W3C (MIT, ERCIM, Keio)
 */
class InitializationException extends DDRException {
	/**
	 * @var int There was a problem during initialization.
	 */
	static public $INITIALIZATION_ERROR = 300;
}