KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > XMLSchemaException


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.xerces.impl.xs;
17
18 /**
19  * This exception might be thrown by any constraint checking method.
20  *
21  * @xerces.internal
22  *
23  * @author Elena Litani, IBM
24  *
25  * @version $Id: XMLSchemaException.java,v 1.7 2004/10/06 15:14:55 mrglavas Exp $
26  */

27 public class XMLSchemaException extends Exception JavaDoc {
28
29     /** Serialization version. */
30     static final long serialVersionUID = -9096984648537046218L;
31     
32     // store a datatype error: error code plus the arguments
33
String JavaDoc key;
34     Object JavaDoc[] args;
35
36     // report an error
37
public XMLSchemaException(String JavaDoc key, Object JavaDoc[] args) {
38         this.key = key;
39         this.args = args;
40     }
41
42     public String JavaDoc getKey() {
43         return key;
44     }
45
46     public Object JavaDoc[] getArgs() {
47         return args;
48     }
49
50 }
51
Popular Tags