Class ResponseErrorReport
java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.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 SummaryFields inherited from class com.ibm.websphere.servlet.error.ServletErrorReportATTRIBUTE_NAME
- 
Constructor SummaryConstructorsConstructorDescriptionResponseErrorReport(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 SummaryModifier and TypeMethodDescriptionvoidsetErrorCode(int sc) Set the error code of the response.voidsetTargetServletName(String servletName) Set the name of the target Servlet.Methods inherited from class com.ibm.websphere.servlet.error.ServletErrorReportgetDebugMessageAsHTML, getErrorCode, getExceptionClass, getExceptionType, getMessage, getMessageAsHTML, getStackTraceAsString, getTargetServletName, getUnencodedMessage, getUnencodedMessageAsHTMLMethods inherited from class jakarta.servlet.ServletExceptiongetRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ResponseErrorReportpublic ResponseErrorReport()
- 
ResponseErrorReportConstructs a new ResponseErrorReport with the specified message.- Parameters:
- message- Message of exception
 
- 
ResponseErrorReportConstructs a new ResponseErrorReport with the specified message and root cause.- Parameters:
- message- Message of exception
- rootCause- Exception that caused this exception to be raised
 
- 
ResponseErrorReportConstructs a new WebAppErrorReport with the specified message and root cause.- Parameters:
- rootCause- Exception that caused this exception to be raised
 
 
- 
- 
Method Details- 
setErrorCodepublic void setErrorCode(int sc) Set the error code of the response.- Overrides:
- setErrorCodein class- com.ibm.websphere.servlet.error.ServletErrorReport
 
- 
setTargetServletNameSet the name of the target Servlet.
 
-