public function setExceptionMessage($message = '', $defaultRedirect = null, $key = null) {
		$statusCode = null;
		$redirectUrl = null;
		if ($message instanceof Exception) {
			if ($this->_controller->request->is('ajax')) {
				$statusCode = $message->getCode();
			}
		}
		if (empty($statusCode)) {
			$this->_controller->Flash->error($message);
			$redirectUrl = $this->getRedirectUrl($defaultRedirect, $key);
		}

		return $this->_controller->redirect($redirectUrl, $statusCode);
	}