public function setError($errorName, $errorNameIndex = null, $message = null) {

		if(is_null($errorNameIndex)) {
			$this->formErrors[$errorName] = new FormError($message);
		}
		else {
			$this->formErrors[$errorName][$errorNameIndex] = new FormError($message);
		}

		return $this;

	}