Class RecipeExceptionFactory


  • public class RecipeExceptionFactory
    extends Object
    The Class RecipeExceptionHelper handles I18N of error messages. Set the following system property to false for non verbose stack traces: * -Dcom.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace=false
    • Field Detail

      • DUTCH_LOCALE

        public static final Locale DUTCH_LOCALE
        The Constant DUTCH_LOCALE.
      • FRENCH_LOCALE

        public static final Locale FRENCH_LOCALE
        The Constant FRENCH_LOCALE.
      • ENGLISH_LOCALE

        public static final Locale ENGLISH_LOCALE
        The Constant ENGLISH_LOCALE.
      • LOCALES

        public static final Locale[] LOCALES
        The Constant LOCALES.
    • Constructor Detail

      • RecipeExceptionFactory

        public RecipeExceptionFactory()
    • Method Detail

      • createException

        public static RecipeException createException​(String errorCode,
                                                      Object[] context)
        Gets the functional exception.
        Parameters:
        errorCode - the error code
        context - the context
        Returns:
        the functional exception
      • createException

        public static RecipeException createException​(Object[] context,
                                                      String errorCode)
        Gets the functional exception.
        Parameters:
        errorCode - the error code
        context - the context
        Returns:
        the functional exception
      • createException

        public static RecipeException createException​(String errorCode,
                                                      Object[] context,
                                                      Throwable cause)
        Gets the functional exception.
        Parameters:
        errorCode - the error code
        context - the context
        cause - the cause
        Returns:
        the functional exception