1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal;
16  
17  /**
18   * <a href="LayoutFriendlyURLException.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public class LayoutFriendlyURLException extends PortalException {
23  
24      public static final int ADJACENT_SLASHES = 4;
25  
26      public static final int DOES_NOT_START_WITH_SLASH = 1;
27  
28      public static final int DUPLICATE = 6;
29  
30      public static final int ENDS_WITH_SLASH = 2;
31  
32      public static final int INVALID_CHARACTERS = 5;
33  
34      public static final int KEYWORD_CONFLICT = 7;
35  
36      public static final int POSSIBLE_DUPLICATE = 8;
37  
38      public static final int TOO_DEEP = 9;
39  
40      public static final int TOO_SHORT = 3;
41  
42      public LayoutFriendlyURLException(int type) {
43          _type = type;
44      }
45  
46      public String getKeywordConflict() {
47          return _keywordConflict;
48      }
49  
50      public int getType() {
51          return _type;
52      }
53  
54      public void setKeywordConflict(String keywordConflict) {
55          _keywordConflict = keywordConflict;
56      }
57  
58      private String _keywordConflict;
59      private int _type;
60  
61  }