Package be.recipe.common.exceptions
Class RecipeExceptionFactory
- java.lang.Object
-
- be.recipe.common.exceptions.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 Summary
Fields Modifier and Type Field Description static LocaleDUTCH_LOCALEThe Constant DUTCH_LOCALE.static LocaleENGLISH_LOCALEThe Constant ENGLISH_LOCALE.static LocaleFRENCH_LOCALEThe Constant FRENCH_LOCALE.static Locale[]LOCALESThe Constant LOCALES.static StringRESOURCE_BUNDLEThe Constant RESOURCE_BUNDLE.static StringSEPERATORThe Constant SEPERATOR.
-
Constructor Summary
Constructors Constructor Description RecipeExceptionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RecipeExceptioncreateException(Object[] context, String errorCode)Gets the functional exception.static RecipeExceptioncreateException(String errorCode, Object[] context)Gets the functional exception.static RecipeExceptioncreateException(String errorCode, Object[] context, Throwable cause)Gets the functional exception.
-
-
-
Field Detail
-
RESOURCE_BUNDLE
public static final String RESOURCE_BUNDLE
The Constant RESOURCE_BUNDLE.- See Also:
- Constant Field Values
-
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.
-
SEPERATOR
public static final String SEPERATOR
The Constant SEPERATOR.- See Also:
- Constant Field Values
-
LOCALES
public static final Locale[] LOCALES
The Constant LOCALES.
-
-
Method Detail
-
createException
public static RecipeException createException(String errorCode, Object[] context)
Gets the functional exception.- Parameters:
errorCode- the error codecontext- the context- Returns:
- the functional exception
-
createException
public static RecipeException createException(Object[] context, String errorCode)
Gets the functional exception.- Parameters:
errorCode- the error codecontext- 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 codecontext- the contextcause- the cause- Returns:
- the functional exception
-
-