Top Description Fields Constructors Methods
org.apache.xerces.impl.dv

public Class DatatypeException

extends Exception
Class Inheritance
Known Direct Subclasses
org.apache.xerces.impl.dv.InvalidDatatypeFacetException, org.apache.xerces.impl.dv.InvalidDatatypeValueException
Imports
java.util.MissingResourceException, .ResourceBundle

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 809242 2009-08-30 03:34:31Z mrglavas $

Field Summary

Modifier and TypeField and Description
protected final Object[]
protected final String
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
DatatypeException(String
error code
key
,
Object[]
error arguments
args
)

Create a new datatype exception by providing an error code and a list of error message substitution arguments.

Method Summary

Modifier and TypeMethod and Description
public Object[]

Returns:

error arguments
getArgs
()

Return the list of error arguments

public String

Returns:

error code
getKey
()

Return the error code

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Overrides this method to get the formatted&localized; error message.

Field Detail

argsback to summary
protected final Object[] args
keyback to summary
protected final String key
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Serialization version.

Constructor Detail

DatatypeExceptionback to 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.

Parameters
key:String

error code

args:Object[]

error arguments

Method Detail

getArgsback to summary
public Object[] getArgs()

Return the list of error arguments

Returns:Object[]

error arguments

getKeyback to summary
public String getKey()

Return the error code

Returns:String

error code

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.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?

Returns:String

Doc from java.lang.Throwable.getMessage.

the detail message string of this Throwable instance (which may be null).