|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.apache.xerces.impl.dv.DatatypeException
public class DatatypeException
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.
Constructor Summary | |
---|---|
DatatypeException(java.lang.String key,
java.lang.Object[] args)
Create a new datatype exception by providing an error code and a list of error message substitution arguments. |
Method Summary | |
---|---|
java.lang.Object[] |
getArgs()
Return the list of error arguments |
java.lang.String |
getKey()
Return the error code |
java.lang.String |
getMessage()
Overrides this method to get the formatted&localized error message. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatatypeException(java.lang.String key, java.lang.Object[] args)
key
- error codeargs
- error argumentsMethod Detail |
---|
public java.lang.String getKey()
public java.lang.Object[] getArgs()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |