Class ErrorPageProvider.ErrorPageConfig

java.lang.Object
com.saperion.ngc.util.ErrorPageProvider.ErrorPageConfig
Enclosing class:
ErrorPageProvider

public static class ErrorPageProvider.ErrorPageConfig extends Object
Use this class to configure the error page you want to get.
Author:
sts
  • Field Details

    • showStatusCode

      protected boolean showStatusCode
      Indicates if the error page should show the error status code.
    • showErrorMessage

      protected boolean showErrorMessage
      Indicates if the error page should show error message.
    • showErrorType

      protected boolean showErrorType
      Indicates 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

      public static ErrorPageProvider.ErrorPageConfig allFalse()
      Creates a ErrorPageConfig object with all parameters to false.
      Returns:
      a ErrorPageConfig object with all parameters to false.