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
Direct known subclasses:
- public class ServletErrorReport
- extends javax.servlet.ServletException
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
ATTRIBUTE_NAME
The request-scoped attribute name that is used to retrieve a servlet error report.
|
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 |
---|---|
|
getErrorCode()
Return the error code associated with this error.
|
|
getExceptionClass()
Returns the java.lang.Class of the root cause.
|
|
getExceptionType()
Returns the fully-qualified class name of the exception.
|
|
getMessage()
Returns a detailed message about the error.
|
|
getMessageAsHTML()
Returns a detailed message about the error in HTML.
|
|
getStackTrace(java.lang.Throwable th)
|
|
getStackTraceAsString()
Returns the stack trace as a string.
|
|
getTargetServletName()
Returns the name of the servlet that reported the error.
|
|
getUnencodedMessage()
Returns an unencoded detailed message about the error.
|
|
getUnencodedMessageAsHTML()
Returns a detailed message about the error in HTML.
|
|
setErrorCode(int sc)
Subclasses can use this method to set the error code.
|
|
setTargetServletName(java.lang.String servletName)
Subclasses can use this method to set the status code.
|
Methods inherited from class javax.servlet.ServletException |
---|
getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
ATTRIBUTE_NAME
- public static final java.lang.String ATTRIBUTE_NAME
See Also:
Constructor Detail
ServletErrorReport
- public ServletErrorReport()
ServletErrorReport
- public ServletErrorReport(java.lang.String message)
Constructs a new ServletErrorReport with the specified message.
Parameters:
message
- Message of exception ServletErrorReport
- public 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 ServletErrorReport
- 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
- public java.lang.String getMessage( )
Returns a detailed message about the error.
Overrides:
getMessage
in class java.lang.Throwable
getUnencodedMessage
- public java.lang.String getUnencodedMessage( )
Returns an unencoded detailed message about the error.
getMessageAsHTML
- public java.lang.String getMessageAsHTML( )
Returns a detailed message about the error in HTML.
getUnencodedMessageAsHTML
- public java.lang.String getUnencodedMessageAsHTML( )
Returns a detailed message about the error in HTML.
getStackTraceAsString
- public java.lang.String getStackTraceAsString( )
Returns the stack trace as a string.
getErrorCode
- public int getErrorCode()
Return the error code associated with this error.
getTargetServletName
- public java.lang.String getTargetServletName( )
Returns the name of the servlet that reported the error.
setErrorCode
- public void setErrorCode(int sc)
Subclasses can use this method to set the error code.
setTargetServletName
- protected void setTargetServletName( java.lang.String servletName)
Subclasses can use this method to set the status code.
getStackTrace
- protected java.lang.String getStackTrace( java.lang.Throwable th)
getExceptionType
- public java.lang.String getExceptionType( )
Returns the fully-qualified class name of the exception.
getExceptionClass
- public java.lang.Class getExceptionClass( )
Returns the java.lang.Class of the root cause.
attribute name: ErrorReport