1 /** 2007, Digitalis Informatica. All rights reserved. 2 * 3 * Distribuicao e Gestao de Informatica, Lda. 4 * Estrada de Paco de Arcos num.9 - Piso -1 5 * 2780-666 Paco de Arcos 6 * Telefone: (351) 21 4408990 7 * Fax: (351) 21 4408999 8 * http://www.digitalis.pt 9 */ 10 package pt.digitalis.dif.exception.controller; 11 12 import pt.digitalis.dif.controller.interfaces.IDIFContext; 13 import pt.digitalis.dif.exception.InternalFrameworkException; 14 15 /** 16 * This exception represents a Business Exception. Whenever an exception is thrown in a stage execution this will be 17 * launched by the Dispatcher. 18 * 19 * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a> 20 * @created Dec 21, 2007 21 */ 22 public class BusinessFlowException extends InternalFrameworkException { 23 24 /** 25 * 26 */ 27 private static final long serialVersionUID = 0L; 28 29 /** 30 * Constructs a new BusinessFlowException from an Exception. 31 * 32 * @param exception 33 * the exception to encapsulate 34 * @param difContext 35 * the execution context 36 */ 37 public BusinessFlowException(Exception exception, IDIFContext difContext) { 38 super(exception, difContext); 39 } 40 41 /** 42 * Constructs a new BusinessFlowException from a reason for the exception. 43 * 44 * @param reason 45 * the exception cause 46 * @param difContext 47 * the execution context 48 */ 49 public BusinessFlowException(String reason, IDIFContext difContext) { 50 super(reason, difContext); 51 } 52 53 /** 54 * Constructs a new BusinessFlowException accepting a reason for the exception 55 * 56 * @param reason 57 * the exception cause 58 * @param exception 59 * the exception to encapsulate 60 * @param difContext 61 * the execution context 62 */ 63 public BusinessFlowException(String reason, Exception exception, IDIFContext difContext) { 64 super(reason, exception, difContext); 65 } 66 }