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 * Default constructor.
9 */
10 public EventException() {
11 super();
12 }
13
14 /**
15 * Constructor that allows an exception message.
16 * @param exceptionMessage The exception message.
17 */
18 public EventException(String exceptionMessage) {
19 super(exceptionMessage);
20 }
21
22 /**
23 * Constructor that chains another Exception or Error.
24 * @param originalException The original exception.
25 */
26 public EventException(Throwable originalException) {
27 super(originalException);
28 }
29
30 /**
31 * Constructor that chains another Exception or Error and also allows a message
32 * to be specified.
33 * @param exceptionMessage The exception message.
34 * @param originalException The original excepton.
35 */
36 public EventException(String exceptionMessage, Throwable originalException) {
37 super(exceptionMessage, originalException);
38 }
39 }