Package com.jk.web.embedded.spring
Class ErrorPage
java.lang.Object
com.jk.web.embedded.spring.ErrorPage
This class represents a configuration for handling error pages in a web
application.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionErrorPage
(JKHttpStatus status, String path) This method constructs a newErrorPage
with the provided path to the error page and HTTP status code.This method constructs a newErrorPage
with the provided path to the error page and exception type.This method constructs a newErrorPage
with the provided path to the error page. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method retrieves the exception type.This method retrieves the exception type name.getPath()
This method retrieves the path to the error page.This method retrieves the HTTP status code.int
This method retrieves the HTTP status code value.int
hashCode()
boolean
isGlobal()
This method check whether this error page is global or not.
-
Constructor Details
-
ErrorPage
This method constructs a newErrorPage
with the provided path to the error page.- Parameters:
path
- Specifies the path to the error page.
-
ErrorPage
This method constructs a newErrorPage
with the provided path to the error page and HTTP status code.- Parameters:
status
- Specifies the HTTP status code.path
- Specifies the path to the error page.
-
ErrorPage
This method constructs a newErrorPage
with the provided path to the error page and exception type.- Parameters:
exception
- Specifies the exception type.path
- Specifies the path to the error page.
-
-
Method Details
-
getPath
This method retrieves the path to the error page.- Returns:
- the path to the error page.
-
getException
This method retrieves the exception type.- Returns:
- the exception type.
-
getStatus
This method retrieves the HTTP status code.- Returns:
- the HTTP status code.
-
getStatusCode
public int getStatusCode()This method retrieves the HTTP status code value.- Returns:
- the HTTP status code value.
-
getExceptionName
This method retrieves the exception type name.- Returns:
- the exception type name.
-
isGlobal
public boolean isGlobal()This method check whether this error page is global or not.- Returns:
- true, if it is global, false otherwise.
-
hashCode
public int hashCode() -
equals
-