Package com.saperion.ngc.util
Class ErrorPageProvider.ErrorPageConfig
java.lang.Object
com.saperion.ngc.util.ErrorPageProvider.ErrorPageConfig
- Enclosing class:
- ErrorPageProvider
Use this class to configure the error page you want to get.
- Author:
- sts
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Indicates if the error page should show error message.protected boolean
Indicates if the error page should show the error type.protected boolean
Indicates if the error page should show the error status code. -
Constructor Summary
ConstructorsConstructorDescriptionErrorPageConfig
(boolean showStatusCode, boolean showErrorMessage, boolean showErrorType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionallFalse()
Creates a ErrorPageConfig object with all parameters to false.
-
Field Details
-
showStatusCode
protected boolean showStatusCodeIndicates if the error page should show the error status code. -
showErrorMessage
protected boolean showErrorMessageIndicates if the error page should show error message. -
showErrorType
protected boolean showErrorTypeIndicates if the error page should show the error type.
-
-
Constructor Details
-
ErrorPageConfig
public ErrorPageConfig(boolean showStatusCode, boolean showErrorMessage, boolean showErrorType) Constructor.- Parameters:
showStatusCode
- indicates if the status code should be shown.showErrorMessage
- indicates if the error message should be shown.showErrorType
- indicates if the error type should be shown.
-
-
Method Details
-
allFalse
Creates a ErrorPageConfig object with all parameters to false.- Returns:
- a ErrorPageConfig object with all parameters to false.
-