Class BackendSystemException.BackendExceptionFactory

  • Enclosing class:
    BackendSystemException

    public static class BackendSystemException.BackendExceptionFactory
    extends java.lang.Object
    Backend exception factory.
    • Constructor Detail

      • BackendExceptionFactory

        public BackendExceptionFactory()
    • Method Detail

      • newBackendConfigurationException

        public static BackendSystemException newBackendConfigurationException​(java.lang.String message,
                                                                              java.lang.Throwable cause,
                                                                              java.util.Map<java.lang.String,​java.lang.String> parameters)
        Creates a new exception for backend configuration errors.
        Parameters:
        message - the error message
        cause - the error cause
        parameters - the message parameters
        Returns:
        the backend configuration exception
      • newUnProcessableRequestException

        public static BackendSystemException newUnProcessableRequestException​(java.lang.String message)
        Creates a new exception for backend where the request can't be processed. For eg, Deleting a document with retention.
        Parameters:
        message - the error message
        Returns:
        the backend exception