Location: PHPKode > projects > DIY Blog > diy-blog/lib/diy-framework/classes/diy-framework/controller/Error.class.php
<?php

/**
 * Request processing error. Mostly used when a form does not validate or business logic conditions are not satisfied.
 * @package		diy-framework
 * @subpackage	controller
 * @author		Martynas Jusevicius <hide@address.com>
 * @link		http://www.xml.lt
 */

class Error
{
	private $name = null;
	private $desc = null;

/**
 * Constructs Error from name.
 * @param string $name Name
 */

	public function __construct($name)
	{
		$this->name = $name;
	}

/**
 * Returns name of this Error.
 * @return string Name
 */

	public function getName()
	{
		return $this->name;
	}

/**
 * Sets name of this Error.
 * @param string $name Name
 */

	public function setName($name)
	{
		$this->name = $name;
	}

/**
 * Returns description of this Error.
 * @return string Description
 */

	public function getDescription()
	{
		return $this->desc;
	}

/**
 * Sets description of this Error.
 * @param string $desc Description
 */

	public function setDescription($desc)
	{
		$this->desc = $desc;
	}

}

?>
Return current item: DIY Blog