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