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:
  • Constructor Details

    • ResponseErrorReport

      public ResponseErrorReport()
    • ResponseErrorReport

      public ResponseErrorReport(String message)
      Constructs a new ResponseErrorReport with the specified message.
      Parameters:
      message - Message of exception
    • ResponseErrorReport

      public ResponseErrorReport(String message, Throwable rootCause)
      Constructs a new ResponseErrorReport with the specified message and root cause.
      Parameters:
      message - Message of exception
      rootCause - Exception that caused this exception to be raised
    • ResponseErrorReport

      public ResponseErrorReport(Throwable rootCause)
      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 class com.ibm.websphere.servlet.error.ServletErrorReport
    • setTargetServletName

      public void setTargetServletName(String servletName)
      Set the name of the target Servlet.