• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Nested SQLException's

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Folks

Is there any standard for the ordering of nested SQLExceptions ?

Looking at the setNextException() source, this adds the new exception to the end of the chain - thus inferring that the first SQLException in the chain details the root cause of the problem.

However, in reality, the SQLExceptions we get back from our Informix 2000 DBMS via Informix's own type 4 JDBC driver have the meat of the exception at the end of the chain - thus inferring that the last SQLException in the chain details the root cause of the problem.


I cannot find any documentation that gives an official stance on this; if, indeed, there is one.


Regards

Gary
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Gary,
I went through the documentation and it seems that setNextException sets the next element in the chain of exceptions. The documentation explicitly says that this method is normally used only by driver or tool writers. You should probably contact INFORMIX or driver vendor and see what they have to say.
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited July 21, 2000).]
 
Right! We're on it! Let's get to work tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic