Class ErrorAttributes
- java.lang.Object
-
- org.apache.wicket.protocol.http.servlet.ErrorAttributes
-
public class ErrorAttributes extends Object
Represents additional error attributes present in aServletRequest
when the servlet container is handling an error or a forward to an error page mapped byerror-page
element inweb.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getException()
Gets exception.Class<? extends Throwable>
getExceptionType()
Gets exceptionType.String
getMessage()
Gets message.String
getRequestUri()
Gets requestUri.String
getServletName()
Gets servletName.Integer
getStatusCode()
Gets statusCode.static ErrorAttributes
of(javax.servlet.http.HttpServletRequest request, String filterPrefix)
Factory for creating instances of this class.String
toString()
-
-
-
Method Detail
-
getStatusCode
public Integer getStatusCode()
Gets statusCode.- Returns:
- statusCode
-
getMessage
public String getMessage()
Gets message.- Returns:
- message
-
getRequestUri
public String getRequestUri()
Gets requestUri.- Returns:
- requestUri
-
getServletName
public String getServletName()
Gets servletName.- Returns:
- servletName
-
getExceptionType
public Class<? extends Throwable> getExceptionType()
Gets exceptionType.- Returns:
- exceptionType
-
getException
public Throwable getException()
Gets exception.- Returns:
- exception
-
of
public static ErrorAttributes of(javax.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.
-
-