1 package cz.cuni.amis.pogamut.base.communication.exception;
2
3 import java.util.logging.Logger;
4
5 import cz.cuni.amis.utils.exception.PogamutIOException;
6
7 @SuppressWarnings("serial")
8 public class CommunicationException extends PogamutIOException {
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 cause
17 */
18 public CommunicationException(String message, Throwable cause) {
19 super(message, cause);
20 }
21
22 /**
23 * Constructs a new exception with the specified detail message.
24 * <p><p>
25 * Not logging anything anywhere on its own.
26 *
27 * @param message
28 * @param origin which object does produced the exception
29 */
30 public CommunicationException(String message, Object origin) {
31 super(message, origin);
32 }
33
34 /**
35 * Constructs a new exception with the specified cause.
36 * <p><p>
37 * Not logging anything anywhere on its own.
38 *
39 * @param cause
40 * @param origin
41 */
42 public CommunicationException(Throwable cause, Object origin) {
43 super(cause, origin);
44 }
45
46 /**
47 * Constructs a new exception with the specified detail message and cause.
48 * <p><p>
49 * Not logging anything anywhere on its own.
50 *
51 * @param message
52 * @param cause
53 * @param origin which object does produced the exception
54 */
55 public CommunicationException(String message, Throwable cause, Object origin) {
56 super(message, cause, origin);
57 }
58
59
60 /**
61 * Constructs a new exception with the specified detail message.
62 * <p><p>
63 * Logs the exception via specified Logger.
64 *
65 * @param message
66 * @param log
67 * @param origin which object does produced the exception
68 */
69 public CommunicationException(String message, Logger log, Object origin){
70 super(message, log, origin);
71 }
72
73 /**
74 * Constructs a new exception with the specified detail message and cause.
75 * <p><p>
76 * Logs the exception via specified Logger.
77 *
78 * @param message
79 * @param cause
80 * @param origin which object does produced the exception
81 */
82 public CommunicationException(String message, Throwable cause, Logger log, Object origin) {
83 super(message, cause, log, origin);
84 }
85
86 }