1 package cz.cuni.amis.pogamut.base.communication.connection.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 IWorldConnection / IReaderProvider / IWriterProvider implementors.
9 * @author Jimmy
10 */
11 @SuppressWarnings("serial")
12 public class ConnectionException 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 ConnectionException(String message, Object origin) {
23 super(message, origin);
24 }
25
26 /**
27 * Constructs a new exception with the specified cause.
28 * <p><p>
29 * Not logging anything anywhere on its own.
30 *
31 * @param cause
32 * @param origin
33 */
34 public ConnectionException(Throwable cause, Object origin) {
35 super(cause, origin);
36 }
37
38 /**
39 * Constructs a new exception with the specified detail message and cause.
40 * <p><p>
41 * Not logging anything anywhere on its own.
42 *
43 * @param message
44 * @param cause
45 * @param origin which object does produced the exception
46 */
47 public ConnectionException(String message, Throwable cause, Object origin) {
48 super(message, cause, origin);
49 }
50
51 /**
52 * Constructs a new exception with the specified detail message.
53 * <p><p>
54 * Logs the exception via specified Logger.
55 *
56 * @param message
57 * @param log
58 * @param origin which object does produced the exception
59 */
60 public ConnectionException(String message, Logger log, Object origin){
61 super(message, log, origin);
62 }
63
64 /**
65 * Constructs a new exception with the specified detail message and cause.
66 * <p><p>
67 * Logs the exception via specified Logger.
68 *
69 * @param message
70 * @param cause
71 * @param origin which object does produced the exception
72 */
73 public ConnectionException(String message, Throwable cause, Logger log, Object origin) {
74 super(message, cause, log, origin);
75 }
76
77 }