KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > exceptions > JahiaSiteAndPageIDMismatchException


1 package org.jahia.exceptions;
2
3 /**
4  * This exception is thrown in case the consistency cross-check 'site <-> host'
5  * failes.
6  *
7  * @author Sergiy Shyrkov
8  */

9 public class JahiaSiteAndPageIDMismatchException extends JahiaException
10 {
11
12   /** The serialVersionUID. */
13   private static final long serialVersionUID = -1554145675009555250L;
14
15   /**
16    * Initializes an instance of this class.
17    *
18    * @param resolvedSiteKey the site key resolved from the request parameters
19    * @param siteKeyByHostName the site key resolved by the host name
20    * @param hostName the host name
21    */

22   public JahiaSiteAndPageIDMismatchException(String JavaDoc resolvedSiteKey,
23     String JavaDoc siteKeyByHostName, String JavaDoc hostName)
24   {
25     super("[Error code: 404] Consistency cross-check failed", " resolved Jahia site key '"
26       + resolvedSiteKey + "' does not match the key '" + siteKeyByHostName
27       + "', resolved by the host name '" + hostName + "'.", SITE_NOT_FOUND,
28       JahiaException.WARNING_SEVERITY);
29   }
30
31 }
32
Popular Tags