<?php
/**
 * This file is part of the set of the DDR Simple API definition. It contains the
 * definition of the {@link NameException} class.
 * 
 * @author Sylvain Lequeux
 * @author Francois Daoust <fd@w3.org>
 * @package AskPythia
 * @subpackage Interface
 * @version $Revision: 1.9 $
 * @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-NameException NameException}
 * class as defined in the {@link http://www.w3.org/TR/DDR-Simple-API/
 * DDR Simple API} standard.
 * 
 * This exception should be thrown when it is detected that the name of a
 * property or aspect or vocabulary IRI is in error. The exception code,
 * when set, indicates the nature of the error.
 * 
 * A name of a Property or Aspect or a vocabulary IRI are in error when they
 * are not syntactically valid or are not supported by the implementation. 
 *
 * The exception should be thrown using the constructor of the base Exception
 * class: throw new NameException([$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.9 $
 * @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 NameException extends DDRException {
	/**
	 * @var int The name of a Property is in error.
	 */
	static public $PROPERTY_NOT_RECOGNIZED = 100;
	/**
	 * @var int The name of an Aspect is in error.
	 */
	static public $ASPECT_NOT_RECOGNIZED = 800;
	/**
	 * @var int A vocabulary IRI is in error.
	 */
	static public $VOCABULARY_NOT_RECOGNIZED = 200;
}