1 package cz.cuni.amis.pogamut.base.agent.exceptions;
2
3 import java.util.logging.Logger;
4
5 import cz.cuni.amis.pogamut.base.component.exception.ComponentException;
6
7 /**
8 * Used by Gavial agents.
9 * @author Jimmy
10 */
11 @SuppressWarnings("serial")
12 public class AgentException extends ComponentException {
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 cause
21 */
22 public AgentException(String message, Throwable cause) {
23 super(message, cause);
24 }
25
26 /**
27 * Constructs a new exception with the specified detail message.
28 * <p><p>
29 * Not logging anything anywhere on its own.
30 *
31 * @param message
32 * @param origin which object does produced the exception
33 */
34 public AgentException(String message, Object origin) {
35 super(message, 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 AgentException(String message, Throwable cause, Object origin) {
48 super(message, cause, origin);
49 }
50
51
52 /**
53 * Constructs a new exception with the specified detail message.
54 * <p><p>
55 * Logs the exception via specified Logger.
56 *
57 * @param message
58 * @param log
59 * @param origin which object does produced the exception
60 */
61 public AgentException(String message, Logger log, Object origin){
62 super(message, log, origin);
63 }
64
65 /**
66 * Constructs a new exception with the specified detail message and cause.
67 * <p><p>
68 * Logs the exception via specified Logger.
69 *
70 * @param message
71 * @param cause
72 * @param origin which object does produced the exception
73 */
74 public AgentException(String message, Throwable cause, Logger log, Object origin) {
75 super(message, cause, log, origin);
76 }
77
78 }