View Javadoc

1   /*
2    * Copyright 1999-2006 Faculty of Mathematics, Physics
3    * and Informatics, Comenius University, Bratislava. This file is protected by
4    * the Mozilla Public License version 1.1 (the "License"); you may not use this
5    * file except in compliance with the License. You may obtain a copy of the
6    * License at http://euromath2.sourceforge.net/license.html Unless required by
7    * applicable law or agreed to in writing, software distributed under the
8    * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9    * OF ANY KIND, either express or implied. See the License for the specific
10   * language governing permissions and limitations under the License.
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  }