001
014
015 package com.liferay.portlet.wiki;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020
021
024 @ProviderType
025 public class NodeChangeException extends PortalException {
026
027 public static final int DUPLICATE_PAGE = 1;
028
029 public static final int REDIRECT_PAGE = 2;
030
031 public NodeChangeException(String nodeName, String pageTitle, int type) {
032 _nodeName = nodeName;
033 _pageTitle = pageTitle;
034 _type = type;
035 }
036
037 public String getNodeName() {
038 return _nodeName;
039 }
040
041 public String getPageTitle() {
042 return _pageTitle;
043 }
044
045 public int getType() {
046 return _type;
047 }
048
049 private final String _nodeName;
050 private final String _pageTitle;
051 private final int _type;
052
053 }