Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.dv

public Class DatatypeException

extends Exception
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeFacetException, com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeValueException
Imports
java.util.MissingResourceException, .PropertyResourceBundle, .ResourceBundle, jdk.xml.internal.SecuritySupport

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.
Author
Sandy Gao, IBM

Field Summary

Modifier and TypeField and Description
protected Object[]
protected 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 Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.

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 Object[] args
Annotations
@SuppressWarnings:serial
keyback to summary
protected 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

fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override
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).