com.ibm.websphere.servlet.error

Class ServletErrorReport

  1. java.lang.Object
  2. extended byServletException
  3. extended bycom.ibm.websphere.servlet.error.ServletErrorReport

  1. public class ServletErrorReport
  2. extends ServletException

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
ATTRIBUTE_NAME
The request-scoped attribute name that is used to retrieve a servlet error report.
attribute name: ErrorReport

Constructor Summary

Constructor and Description
ServletErrorReport()
ServletErrorReport(java.lang.String message)
Constructs a new ServletErrorReport with the specified message.
ServletErrorReport(java.lang.String message,java.lang.Throwable rootCause)
Constructs a new ServletErrorReport with the specified message and root cause.
ServletErrorReport(java.lang.Throwable rootCause)
Constructs a new ServletErrorReport with the specified message and root cause.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getDebugMessageAsHTML()
  1. int
getErrorCode()
Return the error code associated with this error.
  1. java.lang.Class
getExceptionClass()
Returns the java.lang.Class of the root cause.
  1. java.lang.String
getExceptionType()
Returns the fully-qualified class name of the exception.
  1. java.lang.String
getMessage()
Returns a detailed message about the error.
  1. java.lang.String
getMessageAsHTML()
Returns a detailed message about the error in HTML.
  1. java.lang.String
getStackTraceAsString()
Returns the stack trace as a string.
  1. java.lang.String
getTargetServletName()
Returns the name of the servlet that reported the error.
  1. java.lang.String
getUnencodedMessage()
Returns an unencoded detailed message about the error.
  1. java.lang.String
getUnencodedMessageAsHTML()
Returns a detailed message about the error in HTML.
  1. void
setErrorCode(int sc)
Subclasses can use this method to set the error code.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

ATTRIBUTE_NAME

  1. public static final java.lang.String ATTRIBUTE_NAME
The request-scoped attribute name that is used to retrieve a servlet error report.
attribute name: ErrorReport
See Also:

Constructor Detail

ServletErrorReport

  1. public ServletErrorReport()

ServletErrorReport

  1. public ServletErrorReport(java.lang.String message)
Constructs a new ServletErrorReport with the specified message.
Parameters:
message - Message of exception

ServletErrorReport

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

ServletErrorReport

  1. public ServletErrorReport(java.lang.Throwable rootCause)
Constructs a new ServletErrorReport with the specified message and root cause.
Parameters:
rootCause - Exception that caused this exception to be raised

Method Detail

getMessage

  1. public java.lang.String getMessage( )
Returns a detailed message about the error.

getUnencodedMessage

  1. public java.lang.String getUnencodedMessage( )
Returns an unencoded detailed message about the error.

getMessageAsHTML

  1. public java.lang.String getMessageAsHTML( )
Returns a detailed message about the error in HTML.

getUnencodedMessageAsHTML

  1. public java.lang.String getUnencodedMessageAsHTML( )
Returns a detailed message about the error in HTML.

getStackTraceAsString

  1. public java.lang.String getStackTraceAsString( )
Returns the stack trace as a string.

getErrorCode

  1. public int getErrorCode()
Return the error code associated with this error.

getTargetServletName

  1. public java.lang.String getTargetServletName( )
Returns the name of the servlet that reported the error.

setErrorCode

  1. public void setErrorCode(int sc)
Subclasses can use this method to set the error code.

getExceptionType

  1. public java.lang.String getExceptionType( )
Returns the fully-qualified class name of the exception.

getExceptionClass

  1. public java.lang.Class getExceptionClass( )
Returns the java.lang.Class of the root cause.

getDebugMessageAsHTML

  1. public java.lang.String getDebugMessageAsHTML( )