org.apache.xerces.impl.dv
Class DatatypeException
Exception
org.apache.xerces.impl.dv.DatatypeException
public class DatatypeException
extends 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.
$Id: DatatypeException.java,v 1.7 2004/10/06 14:56:50 mrglavas Exp $protected Object[] | args
|
protected String | key
|
DatatypeException(String key, Object[] args) - Create a new datatype exception by providing an error code and a list
of error message substitution arguments.
|
Object[] | getArgs() - Return the list of error arguments
|
String | getKey() - Return the error code
|
String | getMessage() - Overrides this method to get the formatted&localized error message.
|
args
protected Object[] args
DatatypeException
public DatatypeException(String key,
Object[] args)
Create a new datatype exception by providing an error code and a list
of error message substitution arguments.
key
- error codeargs
- error arguments
getArgs
public Object[] getArgs()
Return the list of error arguments
getKey
public String getKey()
Return the error code
getMessage
public String getMessage()
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?
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.