1 package eu.scape_project.watch.utils.exception;
2
3 /**
4 * Exception thrown when a element is not found in the requested resource.
5 *
6 * @author Luis Faria <lfaria@keep.pt>
7 *
8 */
9 public class NotFoundException extends ApiException {
10
11 /**
12 * Generated serial.
13 */
14 private static final long serialVersionUID = -8902097610254093563L;
15
16 /**
17 * HTTP code related to this exception.
18 */
19 public static final int CODE = 404;
20
21 /**
22 * Create a new not found exception.
23 *
24 * @param msg
25 * a message explaining the occurrence
26 */
27 public NotFoundException(final String msg) {
28 super(CODE, msg);
29 }
30 }