18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.impl.dv;
22
23 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
24 import java.util.ResourceBundle;
25 import java.util.PropertyResourceBundle;
26 import java.util.MissingResourceException;
27
28 /**
29 * Base class for datatype exceptions. For DTD types, the exception can be
30 * created from an error message. For Schema types, it needs an error code
31 * (as defined in Appendix C of the structure spec), plus an array of arguents,
32 * for error message substitution.
33 *
34 * @xerces.internal
35 *
36 * @author Sandy Gao, IBM
37 *
38 * @version $Id: DatatypeException.java,v 1.6 2010-11-01 04:39:43 joehw Exp $
39 */
40 public class DatatypeException extends Exception {
41
42 /** Serialization version. */
43 static final long serialVersionUID = 1940805832730465578L;
44
45 // used to store error code and error substitution arguments
46 protected String key;
47 protected Object[] args;
48
49 /**
50 * Create a new datatype exception by providing an error code and a list
51 * of error message substitution arguments.
52 *
53 * @param key error code
54 * @param args error arguments
55 */
56 public DatatypeException(String key, Object[] args) {
57 super(key);
58 this.key = key;
|
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.impl.dv;
22
23 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
24 import java.util.ResourceBundle;
25 import java.util.PropertyResourceBundle;
26 import java.util.MissingResourceException;
27
28 /**
29 * Base class for datatype exceptions. For DTD types, the exception can be
30 * created from an error message. For Schema types, it needs an error code
31 * (as defined in Appendix C of the structure spec), plus an array of arguents,
32 * for error message substitution.
33 *
34 * @xerces.internal
35 *
36 * @author Sandy Gao, IBM
37 *
38 */
39 public class DatatypeException extends Exception {
40
41 /** Serialization version. */
42 static final long serialVersionUID = 1940805832730465578L;
43
44 // used to store error code and error substitution arguments
45 protected String key;
46 protected Object[] args;
47
48 /**
49 * Create a new datatype exception by providing an error code and a list
50 * of error message substitution arguments.
51 *
52 * @param key error code
53 * @param args error arguments
54 */
55 public DatatypeException(String key, Object[] args) {
56 super(key);
57 this.key = key;
|