public function setError($error, $key = null)
	{
		if ($error instanceof Exception)
		{
			$this->error = $error;
			return true;
		}

		return false;
	}
public function setError($error, $key = null)
	{
		if ($error instanceof Exception)
		{
			$this->error = $error;
			return true;
		}

		return false;
	}
public function setError ( $ error , $ key = null ) { if ( $ error instanceof Exception ) { $ this -> error = $ error ; return true ; } return false ; }
Set error object

@param   object   $error  Error object to set
@return  boolean  True on success
Set error object