Subject | Re: [Firebird-Java] hostname resolving jaybird |
---|---|
Author | Roman Rokytskyy |
Post date | 2009-05-17T10:18:44Z |
> Before Java 1.4 there was no API-defined Exception-chaining in Java, soThanks for the explanation. Could you create an appropriate ticket
> a lot of people rolled their own, Java 1.4 introduced a standard for
> chaining. JDBC specifies a specific way of chaining but that is not
> followed by Jaybird as far as I can see. Starting with JDBC 4.0 a
> combination of the old JDBC chaining and the new chaining should be used.
>
> The 'old-school' style in Jaybird uses getNext() in GDSException and
> getInternalException in FBSQLException. Under the 'new'
> Exception-chaining, one would normally use getCause() or in case of JDBC
> specific Exceptions: getNextException() in combination with getCause().
> See also the explanation in
> http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html and
> paragraph 8.1.2 in the JDBC 4.0 spec.
("Improvement"), I will check how much work would be to switch to new
exception chaining.
Roman