| java.lang.Object java.lang.Throwable java.lang.Exception org.apache.xerces.impl.dv.DatatypeException
All known Subclasses: org.apache.xerces.impl.dv.InvalidDatatypeValueException, org.apache.xerces.impl.dv.InvalidDatatypeFacetException,
DatatypeException | public class DatatypeException extends Exception (Code) | | 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 arguments,
for error message substitution.
author: Sandy Gao, IBM version: $Id: DatatypeException.java 572086 2007-09-02 18:26:08Z mrglavas $ |
Constructor Summary | |
public | DatatypeException(String key, Object[] args) Create a new datatype exception by providing an error code and a list
of error message substitution arguments. |
serialVersionUID | final static long serialVersionUID(Code) | | Serialization version.
|
DatatypeException | public DatatypeException(String key, Object[] args)(Code) | | Create a new datatype exception by providing an error code and a list
of error message substitution arguments.
Parameters: key - error code Parameters: args - error arguments |
getArgs | public Object[] getArgs()(Code) | | Return the list of error arguments
error arguments |
getKey | public String getKey()(Code) | | Return the error code
error code |
getMessage | public String getMessage()(Code) | | Overrides this method to get the formatted&localized error message.
REVISIT: the system locale is used to load the property file.
do we want to allow the appilcation to specify a
different locale?
|
|
|