org.apache.xerces.impl.dv
Class DatatypeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.apache.xerces.impl.dv.DatatypeException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- InvalidDatatypeFacetException, InvalidDatatypeValueException
- public class DatatypeException
- extends java.lang.Exception
Base class for datatype exceptions. For DTD types, the exception can be
created from an error message. For Schema types, it needs an error code
(as defined in Appendix C of the structure spec), plus an array of arguents,
for error message substitution.
- Version:
- $Id: DatatypeException.java,v 1.3 2002/01/29 01:15:11 lehors Exp $
- Author:
- Sandy Gao, IBM
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Object[] |
args
|
protected java.lang.String |
key
|
Constructor Summary |
DatatypeException(java.lang.String key,
java.lang.Object[] args)
Create a new datatype exception by providing an error code and a list
of error message substitution arguments. |
Method Summary |
java.lang.Object[] |
getArgs()
Return the list of error arguments |
java.lang.String |
getKey()
Return the error code |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
key
protected java.lang.String key
args
protected java.lang.Object[] args
DatatypeException
public DatatypeException(java.lang.String key,
java.lang.Object[] args)
- Create a new datatype exception by providing an error code and a list
of error message substitution arguments.
- Parameters:
key
- error codeargs
- error arguments
getKey
public java.lang.String getKey()
- Return the error code
- Returns:
- error code
getArgs
public java.lang.Object[] getArgs()
- Return the list of error arguments
- Returns:
- error arguments
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.