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