1 /*
2 * SPDX-FileCopyrightText: none
3 * SPDX-License-Identifier: CC0-1.0
4 */
5
6 package gov.nist.secauto.metaschema.core.metapath;
7
8 /**
9 * {@code MetapathException} is the superclass of all exceptions that can be
10 * thrown during the compilation and evaluation of a Metapath.
11 */
12 public class MetapathException
13 extends RuntimeException {
14
15 /**
16 * the serial version UID.
17 */
18 private static final long serialVersionUID = 1L;
19
20 /**
21 * Constructs a new Metapath exception with a {@code null} message and no cause.
22 */
23 public MetapathException() {
24 // no message
25 }
26
27 /**
28 * Constructs a new Metapath exception with the provided {@code message} and no
29 * cause.
30 *
31 * @param message
32 * the exception message
33 */
34 public MetapathException(String message) {
35 super(message);
36 }
37
38 /**
39 * Constructs a new Metapath exception with a {@code null} message and the
40 * provided {@code cause}.
41 *
42 * @param cause
43 * the exception cause
44 */
45 public MetapathException(Throwable cause) {
46 super(cause);
47 }
48
49 /**
50 * Constructs a new Metapath exception with the provided {@code message} and
51 * {@code cause}.
52 *
53 * @param message
54 * the exception message
55 * @param cause
56 * the exception cause
57 */
58 public MetapathException(String message, Throwable cause) {
59 super(message, cause);
60 }
61 }