1 package de.tud.plt.r43ples.exception;
2
3
4 import org.apache.logging.log4j.LogManager;
5 import org.apache.logging.log4j.Logger;
6
7 /**
8 * create a HTTP Internal Server Error de.tud.plt.r43ples.exception
9 *
10 */
11 public class InternalErrorException extends Exception {
12 /**
13 * default serialVersionUID
14 */
15 private static final long serialVersionUID = 1L;
16 private final static Logger logger = LogManager.getLogger(InternalErrorException.class);
17
18
19 /**
20 * Creates an Internal Error Exception
21 *
22 * @param message
23 * the String that is the entity of the 500 response.
24 */
25 public InternalErrorException(String message) {
26 super(message);
27 logger.error(message);
28 }
29
30 }