Extensions and error conditions 2003-03-17 - By Erik_Vanherck@(protected)
I was just wondering, how should an extension deal with error conditions. Should an extension just throw an exception (assuming it's written in java) or are there other mechanisms ?
As a simple example, suppose that the SQL extension where unable to reach the database (something went wrong, for instance no Driver found on the classpath), chances are the resulting xml file will contain rubbish. If this were to happen during a sequence of stylesheet transformations, it would be nice if Xalan could abort user code linking the sequence together.
I probably just overlooked something in the documentation
Cheers, Erik
---------
Erik Vanherck - System Programmer & Designer Inventive Designers Visit http://www.inventivedesigners.com Visist http://www.inventivedesigners.com/scriptura for Scriptura information !
Phone: +32 - 3 - 8210170 Fax: +32 - 3 - 8210171 Email: Erik_Vanherck@(protected)
"Computers in the future may weigh no more than 1.5 tons." - Popular Mechanics, forecasting the relentless march of science, 1949
|
|