1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.document.schema.plug;
13 /***
14 * Thrown by <code>Schema</code>. This exception is thrown in two cases:
15 * <ul>
16 * <li>when the schema is being loaded - this signalise that the schema file is
17 * invalid or cannot be found, it does not comply to constraints etc</li>
18 * <li>When whole document is validated and it is invalid</li>
19 * </ul>
20 * @author Martin Vysny
21 */
22 @SuppressWarnings("serial")
23 public class SchemaException extends Exception {
24 /***
25 * Constructor.
26 */
27 public SchemaException() {
28 super();
29 }
30 /***
31 * Constructor.
32 * @param message
33 */
34 public SchemaException(String message) {
35 super(message);
36 }
37 /***
38 * Constructor.
39 * @param cause
40 */
41 public SchemaException(Throwable cause) {
42 super(cause);
43 }
44 /***
45 * Constructor.
46 * @param message
47 * @param cause
48 */
49 public SchemaException(String message, Throwable cause) {
50 super(message, cause);
51 }
52 }