home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 November
/
PCWorld_2000-11_cd.bin
/
Komunik
/
sambar444
/
_SETUP.1
/
javaeng.jar
/
javax
/
servlet
/
ServletException.java
< prev
next >
Wrap
Text File
|
2000-08-09
|
2KB
|
82 lines
/*
* ServletException.java -- Thrown to indicate a servlet problem
*
* Copyright (c) 1998, 1999 by Free Software Foundation, Inc.
* Written by Paul Siegmann (pauls@euronet.nl)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as published
* by the Free Software Foundation, version 2. (see COPYING.LIB)
*
* This program 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 this program; if not, write to the Free Software Foundation
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
*/
package javax.servlet;
/**
* This exception is thrown by a servlet when a servlet related problem occurs.
*
* @version Servlet API 2.2
* @since Servlet API 1.0
* @author Paul Siegmann (pauls@euronet.nl)
*/
public class ServletException
extends Exception
{
private Throwable theCause = null;
/**
* Creates a new ServletException.
*
* @since Servlet API 2.0
*/
public ServletException() {
super();
}
/**
* Creates a new ServletException with a message.
*
* @since Servlet API 1.0
*
* @param message why this exception occured
*/
public ServletException(String message) {
super(message);
}
/**
* Creates a new ServletException with a message
* and what caused the exception.
*
* @since Servlet API 2.1
*
* @param message why this exception occured
* @param cause what made this exception occur
*/
public ServletException(String message, Throwable cause) {
super(message);
theCause = cause;
}
/**
* Gives the Throwable that caused this exception if known, otherwise null.
*
* @since Servlet API 2.1
*
* @return Throwable that caused this exception
*/
public Throwable getRootCause() {
return theCause;
}
}