1 /*****************************************************************************
5 * Creation date 14.11.2012
6 * @author Author: Maria KRUCHININA
8 *****************************************************************************/
10 package org.splat.exception;
13 * Define a Business exception send by service.
14 * This class is send by services when a business error occurred (functionnal error)
16 * @author Maria KRUCHININA
19 public class BusinessException extends AbstractException {
24 private static final long serialVersionUID = 1L;
27 * Default constructor.
28 * @see ServiceException#ServiceException()
30 public BusinessException() {
36 * Constructor with a throwable param.
37 * @param throwable the original throwable
38 * @see ServiceException#ServiceException(Throwable)
40 public BusinessException(final Throwable throwable) {
45 * Constructor with a String param and a throwable param.
46 * @param message the error message
47 * @param throwable the original throwable
48 * @see ServiceException#ServiceException(String, Throwable)
50 public BusinessException (final String message,final Throwable throwable) {
51 super(message,throwable);
55 * Build a BusinessException with message, user message key, and throwable.
56 * @param messageKey the User Interface Message Key
57 * @param throwable the original exception
58 * @param context the execution context
60 public BusinessException(final String messageKey,final Throwable throwable,final Object... context) {
61 super(messageKey,throwable,context);
67 * Build a BusinessException with message, user message key and context.
68 * @param messageKey the User Interface Message Key
69 * @param context the execution context
71 public BusinessException(final String messageKey,final Object... context) {
72 super(messageKey,context);