01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-impl/api-impl/src/java/org/sakaiproject/metaobj/utils/xml/SchemaInvalidException.java $
03: * $Id: SchemaInvalidException.java 14225 2006-09-05 17:39:44Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.metaobj.utils.xml;
21:
22: /**
23: * Created by IntelliJ IDEA.
24: * User: John Ellis
25: * Date: Apr 15, 2004
26: * Time: 12:24:25 PM
27: * To change this template use File | Settings | File Templates.
28: */
29: public class SchemaInvalidException extends RuntimeException {
30:
31: /**
32: * Constructs a new runtime exception with <code>null</code> as its
33: * detail message. The cause is not initialized, and may subsequently be
34: * initialized by a call to {@link #initCause}.
35: */
36: public SchemaInvalidException() {
37: super ();
38: }
39:
40: /**
41: * Constructs a new runtime exception with the specified detail message.
42: * The cause is not initialized, and may subsequently be initialized by a
43: * call to {@link #initCause}.
44: *
45: * @param message the detail message. The detail message is saved for
46: * later retrieval by the {@link #getMessage()} method.
47: */
48: public SchemaInvalidException(String message) {
49: super (message);
50: }
51:
52: /**
53: * Constructs a new runtime exception with the specified detail message and
54: * cause. <p>Note that the detail message associated with
55: * <code>cause</code> is <i>not</i> automatically incorporated in
56: * this runtime exception's detail message.
57: *
58: * @param message the detail message (which is saved for later retrieval
59: * by the {@link #getMessage()} method).
60: * @param cause the cause (which is saved for later retrieval by the
61: * {@link #getCause()} method). (A <tt>null</tt> value is
62: * permitted, and indicates that the cause is nonexistent or
63: * unknown.)
64: * @since 1.4
65: */
66: public SchemaInvalidException(String message, Throwable cause) {
67: super (message, cause);
68: }
69:
70: /**
71: * Constructs a new runtime exception with the specified cause and a
72: * detail message of <tt>(cause==null ? null : cause.toString())</tt>
73: * (which typically contains the class and detail message of
74: * <tt>cause</tt>). This constructor is useful for runtime exceptions
75: * that are little more than wrappers for other throwables.
76: *
77: * @param cause the cause (which is saved for later retrieval by the
78: * {@link #getCause()} method). (A <tt>null</tt> value is
79: * permitted, and indicates that the cause is nonexistent or
80: * unknown.)
81: * @since 1.4
82: */
83: public SchemaInvalidException(Throwable cause) {
84: super(cause);
85: }
86:
87: }
|