X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2FCFB.java;h=81c30ea7a39ac86aaa9ee90838775953ecc74189;hp=a830b12c07aa8905b1463673e088ba6fc2abb94e;hb=acd090d811c44ce74d0728d2a478f4c174f4ef49;hpb=538190e8467a555615fbaf1ada3eed44631e10b4 diff --git a/prod/net/jaekl/cfb/CFB.java b/prod/net/jaekl/cfb/CFB.java index a830b12..81c30ea 100644 --- a/prod/net/jaekl/cfb/CFB.java +++ b/prod/net/jaekl/cfb/CFB.java @@ -200,6 +200,11 @@ public class CFB { String cannotConnectFormat = trans(CfbBundle.CANNOT_CONNECT); String cannotConnect = MessageFormat.format(cannotConnectFormat, m_host, ""+m_port, m_dbName, m_user); exc.printStackTrace(pw); + SQLException next = exc.getNextException(); + while (null != next) { + next.printStackTrace(pw); + next = next.getNextException(); + } pw.println(cannotConnect); }