Exceptions
Exceptions for the javax.servlet package are ServletException and UnavailableException. Their methods are described in the following sections.
ServletException Exception
A ServletException object is thrown when a problem is encountered within a servlet.
ServletException() Method
public ServletException()
ServletException() method is the empty constructor. It has no parameters, returns no value, and throws no exceptions.
ServletException(java.lang.String message) Method
public ServletException(java.lang.String message)
Creates a new ServletException object with the passed in String as the message.
Parameters
java.lang.String
Note
The ServletException() method always returns no value and throws no exceptions.
ServletException(java.lang.String ...
Get Pure Java Server Pages™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.