View Javadoc

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