001    /*
002     * 
003     * $Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
004     *
005     * This file is part of ***  M y C o R e  ***
006     * See http://www.mycore.de/ for details.
007     *
008     * This program is free software; you can use it, redistribute it
009     * and / or modify it under the terms of the GNU General Public License
010     * (GPL) as published by the Free Software Foundation; either version 2
011     * of the License or (at your option) any later version.
012     *
013     * This program is distributed in the hope that it will be useful, but
014     * WITHOUT ANY WARRANTY; without even the implied warranty of
015     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
016     * GNU General Public License for more details.
017     *
018     * You should have received a copy of the GNU General Public License
019     * along with this program, in a file called gpl.txt or license.txt.
020     * If not, write to the Free Software Foundation Inc.,
021     * 59 Temple Place - Suite 330, Boston, MA  02111-1307 USA
022     */
023    
024    package org.mycore.frontend.fileupload;
025    
026    /**
027     * This exception is thrown by the UploadCommunicator to indicate that an
028     * exception occured on the server side during execution of a servlet task. The
029     * applet that is using the UploadCommunicator can examine the exceptions
030     * properties to find out what type of exception occured on the server side.
031     * 
032     * @see org.mycore.frontend.fileupload.MCRUploadCommunicator
033     * @author Frank Lützenkirchen
034     * @version $Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
035     */
036    public class MCRUploadException extends Exception {
037        protected String clname;
038    
039        protected String strace;
040    
041        public MCRUploadException(String clname, String message, String strace) {
042            super(message);
043            this.clname = clname;
044            this.strace = strace;
045        }
046    
047        public String getServerSideClassName() {
048            return clname;
049        }
050    
051        public String getServerSideStackTrace() {
052            return strace;
053        }
054    }