1 package org.slf4j.ext;
2
3 /**
4 * Exception used to identify issues related to an event that is being logged.
5 */
6 public class EventException extends RuntimeException {
7
8 private static final long serialVersionUID = -22873966112391992L;
9
10 /**
11 * Default constructor.
12 */
13 public EventException() {
14 super();
15 }
16
17 /**
18 * Constructor that allows an exception message.
19 * @param exceptionMessage The exception message.
20 */
21 public EventException(String exceptionMessage) {
22 super(exceptionMessage);
23 }
24
25 /**
26 * Constructor that chains another Exception or Error.
27 * @param originalException The original exception.
28 */
29 public EventException(Throwable originalException) {
30 super(originalException);
31 }
32
33 /**
34 * Constructor that chains another Exception or Error and also allows a message
35 * to be specified.
36 * @param exceptionMessage The exception message.
37 * @param originalException The original excepton.
38 */
39 public EventException(String exceptionMessage, Throwable originalException) {
40 super(exceptionMessage, originalException);
41 }
42 }