1 package cz.cuni.amis.pogamut.base.communication.parser.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 IParser implementors.
9 * @author Jimmy
10 */
11 @SuppressWarnings("serial")
12 public class ParserException 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 ParserException(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 ParserException(String message, Throwable cause, Object origin) {
36 super(message, cause, origin);
37 }
38
39
40 /**
41 * Constructs a new exception with the specified detail message.
42 * <p><p>
43 * Logs the exception via specified Logger.
44 *
45 * @param message
46 * @param log
47 * @param origin which object does produced the exception
48 */
49 public ParserException(String message, Logger log, Object origin){
50 super(message, log, origin);
51 }
52
53 /**
54 * Constructs a new exception with the specified detail message and cause.
55 * <p><p>
56 * Logs the exception via specified Logger.
57 *
58 * @param message
59 * @param cause
60 * @param origin which object does produced the exception
61 */
62 public ParserException(String message, Throwable cause, Logger log, Object origin) {
63 super(message, cause, log, origin);
64 }
65 }