You should look in the documentation for Xerces;

http://xml.apache.org/xerces-c/apiDocs/index.html

Click list and you should be able to see the File list, search for the files that
have the name Exception. These are Xerces defined exceptions.
If you click on them, you should be able to see the dependency graphs.




ArrayIndeOutOfBoundException
DOMException
DOMRangeException
EmptyStackException
EndOfEntityException
IllegalArgumentException
InvalidCastException
IOException
NoDefTranscodeException
NoSuchElementException
NullPointerException
NumberFormatException
ParseException
RuntimeException
SAXException
SAXParseException
SchemaDateTimeException
TranscodingException
UnexpectedEOFException
UnsupportedEncodingException
UTFDataFormatException
XMLException
MalformedURLExecption
Unexpected Exceptions.

Some other exception thrown internally
XMLErrs::Codes
XMLValid::Codes


rethrows ----------

Most rethrows are XMLException throws handle with the "ThrowXML*" macros (defined in XMLExceptio.hpp).

Occurring in:
 DOMWriterImpl

in addition, the datatype validators ( AbstractNumericValidator, AbstractStringValidator, etc).


throw -----

+ At the DOM level there are DOMException throws
+ At the framework apis. You have your IOException, NullPointerException, ArrayIndexOutOfBoundsException,
RuntimeException, TrancodingException, XValid:codes.


+ In the internal. You have RuntimeException, UnexpectedEOFException, MalformedURLException,
EmptyStackException.


+ SAX API, throws SAXParseException and SAXNotSupportedException
+ util api, NetAccessorException and MalformedURLException
+ Platforms, XMLPlatformUtilsException
+ Regx api (regular expression... used by Schema). RuntimeException, ParserException
+ util/transcoders= IllegalArgumentException, TranscodingException,
+ util. NumberFormatException, TrancodingException, SchemaDateTimeException, IllegalArgumentException,
RuntimeException, ArrayIndexOutOfBoundsException,MalformedURLException. UTFDataFormatException,


+ datatype validators. RuntimeException, ArrayIndexOutBoundsException, InvalidDatatypeFacetException,
InvalidDataValueException, RuntimeException,


+ DTD validators. RuntimeException, UnexpectedEOFException,
+ schema identity. Throws an unexpected exception.... this could be a bug??? IndentityConstraint.cpp
for example throw an exception if it gets an unexpected exception.
Other exceptions: XPathException, RuntimeException,


+ schema. EmptyStackException, RuntimeException,
Here SchemaGrammar also throw an unexpected exception if it catches one( an unexpected exception).
Schema also throws a set of TraverSchema::InvalidComplexTypeInfo, TraverseSchena::RecursingElement,
MalformedURLException.


My listing of Exceptions comes from grep-ing for catch, throw and rethrow so it may not
be a complete listing.



It is a good practice to always try to catch all exceptions with a
catch(...) so you application don't get unexpected-exceptions bubbling from the
parser.


We would think that the Xerces-c developers would have caught most of them and throw
controlled Xerces defined exceptions but you should not count on it.


Regards,

Jeffrey Rodriguez


From: "Patrick Blanchette" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: exceptions in xerces
Date: Tue, 9 Sep 2003 11:40:50 -0400



Exceptions are hard to grep because they can be thrown, catched and rethrown
from many level of codes.
In the end, we have to put all our call to xerces library inside a
try { ... }
catch {XMLExecption&) {}


Patrick

> -----Original Message-----
> From: Jeffrey Rodriguez [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: exceptions in xerces
>
>
> You could do a grep in  try or catch...... :>
>
>
> >From: "Gr�ndal Daniel" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: exceptions in xerces
> >Date: 9 Sep 2003 10:28:00 +0200
> >
> >Hi!
> >
> >Is it only me that thinks that the c++ api docs on the
> website (apache.org)
> >is
> >unsufficient sometimes? I was looking for information about
> what different
> >exceptions that can be thrown from which functions today and
> ended up with
> >no
> >information. Can that information be found somewhere or do I
> have to do it
> >the
> >hard way and browse some code? It would save some time anyway...
> >
> >//daniel
> >
> >------------------------------------------------------------------
> >RFV Data                          E-post: [EMAIL PROTECTED]
> >Utvecklingsenheten/Grupp 2        Tfn: 060-187126
> >S.a J�rnv�gsgatan 41              Mobil: 070-3016517
> >851 93 Sundsvall                  Fax: 060-147870
> >------------------------------------------------------------------
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> Compare Cable, DSL or Satellite plans: As low as $29.95.
> https://broadband.msn.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to