001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.exportimport.kernel.exception;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    
019    /**
020     * @author Raymond Aug??
021     */
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    }