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