Package com.ibm.websphere.servlet.error
Class ServletErrorReport
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- javax.servlet.ServletException
- 
- com.ibm.websphere.servlet.error.ServletErrorReport
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ServletErrorReport extends javax.servlet.ServletException- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringATTRIBUTE_NAMEThe request-scoped attribute name that is used to retrieve a servlet error report.
 attribute name: ErrorReport
 - 
Constructor SummaryConstructors Constructor 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDebugMessageAsHTML()intgetErrorCode()Return the error code associated with this error.java.lang.ClassgetExceptionClass()Returns the java.lang.Class of the root cause.java.lang.StringgetExceptionType()Returns the fully-qualified class name of the exception.java.lang.StringgetMessage()Returns a detailed message about the error.java.lang.StringgetMessageAsHTML()Returns a detailed message about the error in HTML.java.lang.StringgetStackTraceAsString()Returns the stack trace as a string.java.lang.StringgetTargetServletName()Returns the name of the servlet that reported the error.java.lang.StringgetUnencodedMessage()Returns an unencoded detailed message about the error.java.lang.StringgetUnencodedMessageAsHTML()Returns a detailed message about the error in HTML.voidsetErrorCode(int sc)Subclasses can use this method to set the error code.
 
- 
- 
- 
Field Detail- 
ATTRIBUTE_NAMEpublic 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:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ServletErrorReportpublic ServletErrorReport() 
 - 
ServletErrorReportpublic ServletErrorReport(java.lang.String message) Constructs a new ServletErrorReport with the specified message.- Parameters:
- message- Message of exception
 
 - 
ServletErrorReportpublic ServletErrorReport(java.lang.String message, 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
 
 - 
ServletErrorReportpublic 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- 
getMessagepublic java.lang.String getMessage() Returns a detailed message about the error.- Overrides:
- getMessagein class- java.lang.Throwable
 
 - 
getUnencodedMessagepublic java.lang.String getUnencodedMessage() Returns an unencoded detailed message about the error.
 - 
getMessageAsHTMLpublic java.lang.String getMessageAsHTML() Returns a detailed message about the error in HTML.
 - 
getUnencodedMessageAsHTMLpublic java.lang.String getUnencodedMessageAsHTML() Returns a detailed message about the error in HTML.
 - 
getStackTraceAsStringpublic java.lang.String getStackTraceAsString() Returns the stack trace as a string.
 - 
getErrorCodepublic int getErrorCode() Return the error code associated with this error.
 - 
getTargetServletNamepublic java.lang.String getTargetServletName() Returns the name of the servlet that reported the error.
 - 
setErrorCodepublic void setErrorCode(int sc) Subclasses can use this method to set the error code.
 - 
getExceptionTypepublic java.lang.String getExceptionType() Returns the fully-qualified class name of the exception.
 - 
getExceptionClasspublic java.lang.Class getExceptionClass() Returns the java.lang.Class of the root cause.
 - 
getDebugMessageAsHTMLpublic java.lang.String getDebugMessageAsHTML() 
 
- 
 
-