public class

DatatypeException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ org.apache.xerces.impl.dv.DatatypeException
Known Direct Subclasses

Class Overview

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.

Summary

Fields
protected Object[] args
protected String key
Public Constructors
DatatypeException(String key, Object[] args)
Create a new datatype exception by providing an error code and a list of error message substitution arguments.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

protected Object[] args

protected String key

Public Constructors

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 error code
args error arguments

Public Methods

public Object[] getArgs ()

Return the list of error arguments

Returns
  • error arguments

public String getKey ()

Return the error code

Returns
  • error code

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?