• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nested SQLException's

 
Gary Smith
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
 
Milind Kulkarni
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic