View Javadoc

1   package cz.cuni.amis.pogamut.base.component.exception;
2   
3   import java.util.logging.Logger;
4   
5   import cz.cuni.amis.pogamut.base.component.IComponent;
6   import cz.cuni.amis.pogamut.base.component.bus.exception.FatalErrorPropagatingEventException;
7   
8   public class ComponentCantStartException extends ComponentException {
9   
10  	/**
11  	 * Constructs a new exception with the specified detail message.
12  	 * <p><p>
13  	 * Not logging anything anywhere on its own.
14  	 * 
15  	 * @param message
16  	 * @param origin which object does produced the exception
17  	 */
18  	public ComponentCantStartException(String message, IComponent origin) {
19  		super(message, origin);
20  	}
21  	
22  	/**
23  	 * Constructs a new exception with the specified detail message and cause.
24  	 * <p><p>
25  	 * Not logging anything anywhere on its own.
26  	 * 
27  	 * @param message
28  	 * @param cause
29  	 * @param origin which object does produced the exception
30  	 */
31  	public ComponentCantStartException(String message, Throwable cause, IComponent origin) {
32  		super(message, (cause == null ? null : (cause instanceof FatalErrorPropagatingEventException ? ((FatalErrorPropagatingEventException)cause).getCause() == null ? cause : ((FatalErrorPropagatingEventException)cause).getCause() : cause)), origin);
33  	}
34  
35  	
36  	/**
37  	 * Constructs a new exception with the specified detail message.
38  	 * <p><p>
39  	 * Logs the exception via specified Logger.
40  	 * 
41  	 * @param message
42  	 * @param log
43  	 * @param origin which object does produced the exception
44  	 */
45  	public ComponentCantStartException(String message, Logger log, IComponent origin){
46  		super(message, log, origin);
47  	}
48  	
49  	/**
50  	 * Constructs a new exception with the specified detail message and cause.
51  	 * <p><p>
52  	 * Logs the exception via specified Logger.
53  	 * 
54  	 * @param message
55  	 * @param cause
56  	 * @param origin which object does produced the exception
57  	 */
58  	public ComponentCantStartException(String message, Throwable cause, Logger log, IComponent origin) {
59  		super(message, (cause == null ? null : (cause instanceof FatalErrorPropagatingEventException ? ((FatalErrorPropagatingEventException)cause).getCause() == null ? cause : ((FatalErrorPropagatingEventException)cause).getCause() : cause)), log, origin);
60  	}
61  	
62  }