java.lang.Object
org.apache.wicket.protocol.http.servlet.ErrorAttributes
Represents additional error attributes present in a
ServletRequest
when the servlet
container is handling an error or a forward to an error page mapped by error-page
element
in web.xml
.
See documentation for the following request attributes for the values stored in this object:
RequestDispatcher.ERROR_STATUS_CODE
RequestDispatcher.ERROR_MESSAGE
RequestDispatcher.ERROR_REQUEST_URI
RequestDispatcher.ERROR_SERVLET_NAME
RequestDispatcher.ERROR_EXCEPTION_TYPE
RequestDispatcher.ERROR_EXCEPTION
- Author:
- igor
-
Method Summary
Modifier and TypeMethodDescriptionGets exception.Gets exceptionType.Gets message.Gets requestUri.Gets servletName.Gets statusCode.static ErrorAttributes
Factory for creating instances of this class.toString()
-
Method Details
-
getStatusCode
Gets statusCode.- Returns:
- statusCode
-
getMessage
Gets message.- Returns:
- message
-
getRequestUri
Gets requestUri.- Returns:
- requestUri
-
getServletName
Gets servletName.- Returns:
- servletName
-
getExceptionType
Gets exceptionType.- Returns:
- exceptionType
-
getException
Gets exception.- Returns:
- exception
-
of
public static ErrorAttributes of(jakarta.servlet.http.HttpServletRequest request, String filterPrefix) Factory for creating instances of this class.- Parameters:
request
-- Returns:
- instance of request contains error attributes or
null
if it does not.
-
toString
-