Class ResponseErrorReport
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.ibm.websphere.servlet.error.ServletErrorReport
com.ibm.websphere.servlet.response.ResponseErrorReport
- All Implemented Interfaces:
Serializable
public class ResponseErrorReport
extends com.ibm.websphere.servlet.error.ServletErrorReport
- See Also:
-
Field Summary
Fields inherited from class com.ibm.websphere.servlet.error.ServletErrorReport
ATTRIBUTE_NAME
-
Constructor Summary
ConstructorDescriptionResponseErrorReport
(String message) Constructs a new ResponseErrorReport with the specified message.ResponseErrorReport
(String message, Throwable rootCause) Constructs a new ResponseErrorReport with the specified message and root cause.ResponseErrorReport
(Throwable rootCause) Constructs a new WebAppErrorReport with the specified message and root cause. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setErrorCode
(int sc) Set the error code of the response.void
setTargetServletName
(String servletName) Set the name of the target Servlet.Methods inherited from class com.ibm.websphere.servlet.error.ServletErrorReport
getDebugMessageAsHTML, getErrorCode, getExceptionClass, getExceptionType, getMessage, getMessageAsHTML, getStackTraceAsString, getTargetServletName, getUnencodedMessage, getUnencodedMessageAsHTML
Methods inherited from class javax.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseErrorReport
public ResponseErrorReport() -
ResponseErrorReport
Constructs a new ResponseErrorReport with the specified message.- Parameters:
message
- Message of exception
-
ResponseErrorReport
Constructs a new ResponseErrorReport with the specified message and root cause.- Parameters:
message
- Message of exceptionrootCause
- Exception that caused this exception to be raised
-
ResponseErrorReport
Constructs a new WebAppErrorReport with the specified message and root cause.- Parameters:
rootCause
- Exception that caused this exception to be raised
-
-
Method Details
-
setErrorCode
public void setErrorCode(int sc) Set the error code of the response.- Overrides:
setErrorCode
in classcom.ibm.websphere.servlet.error.ServletErrorReport
-
setTargetServletName
Set the name of the target Servlet.
-