001
014
015 package com.liferay.portal.exception;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018
019
022 public class LayoutTypeException extends PortalException {
023
024 public static final int FIRST_LAYOUT = 2;
025
026 public static final int FIRST_LAYOUT_PERMISSION = 3;
027
028 public static final int NOT_INSTANCEABLE = 4;
029
030 public static final int NOT_PARENTABLE = 1;
031
032 public LayoutTypeException(int type) {
033 _type = type;
034 }
035
036 public String getLayoutType() {
037 return _layoutType;
038 }
039
040 public int getType() {
041 return _type;
042 }
043
044 public void setLayoutType(String layoutType) {
045 _layoutType = layoutType;
046 }
047
048 private String _layoutType;
049 private final int _type;
050
051 }