001
014
015 package com.liferay.exportimport.kernel.exception;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018
019
022 public class RemoteExportException extends PortalException {
023
024 public static final int BAD_CONNECTION = 1;
025
026 public static final int INVALID_GROUP = 2;
027
028 public static final int NO_GROUP = 3;
029
030 public static final int NO_PERMISSIONS = 5;
031
032 public static final int SAME_GROUP = 4;
033
034 public RemoteExportException(int type) {
035 _type = type;
036 }
037
038 public RemoteExportException(int type, String msg) {
039 super(msg);
040
041 _type = type;
042 }
043
044 public long getGroupId() {
045 return _groupId;
046 }
047
048 public int getType() {
049 return _type;
050 }
051
052 public String getURL() {
053 return _url;
054 }
055
056 public void setGroupId(long groupId) {
057 _groupId = groupId;
058 }
059
060 public void setURL(String url) {
061 _url = url;
062 }
063
064 private long _groupId;
065 private final int _type;
066 private String _url;
067
068 }