/*==========================================================================*\ | $Id: SubmissionTargetException.java,v 1.2 2010/05/14 14:45:43 aallowat Exp $ |*-------------------------------------------------------------------------*| | Copyright (C) 2006-2009 Virginia Tech | | This file is part of Web-CAT Electronic Submitter. | | Web-CAT is free software; you can redistribute it and/or modify | it under the terms of the GNU General Public License as published by | the Free Software Foundation; either version 2 of the License, or | (at your option) any later version. | | Web-CAT is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General Public License for more details. | | You should have received a copy of the GNU General Public License along | with Web-CAT; if not, see <http://www.gnu.org/licenses/>. \*==========================================================================*/ package org.webcat.submitter; import java.io.IOException; //-------------------------------------------------------------------------- /** * A general exception type used by the submitter that wraps other more * specific exceptions, such as I/O exceptions and XML parsing exceptions, so * that they can be handled in a common manner. * * @author Tony Allevato (Virginia Tech Computer Science) * @author latest changes by: $Author: aallowat $ * @version $Revision: 1.2 $ $Date: 2010/05/14 14:45:43 $ */ public class SubmissionTargetException extends IOException { //~ Constructors .......................................................... // ---------------------------------------------------------- /** * Creates a new instance of this exception with no inner exception. This * is only used by subclasses that don't represent their errors using * wrapped exceptions. */ protected SubmissionTargetException() { // Does nothing. } // ---------------------------------------------------------- /** * Creates a new instance of this exception that wraps the specified * exception. * * @param cause a Throwable that represents the actual exception that was * thrown */ public SubmissionTargetException(Throwable cause) { this.cause = cause; } //~ Methods ............................................................... // ---------------------------------------------------------- /** * Returns the cause of this Throwable. * * @return the cause of this throwable */ @Override public Throwable getCause() { return cause; } //~ Static/instance variables ............................................. private Throwable cause; private static final long serialVersionUID = 1L; }