Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/CShomonyms/Server/src/org/litesoft/GWT/homonyms/ThrowableCause.java

Diff revisions: vs.
  @@ -1,20 +1,20 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.homonyms;
3 -
4 - import java.sql.*;
5 -
6 - public class ThrowableCause
7 - {
8 - public static Throwable get( Throwable pThrowable )
9 - {
10 - if ( (pThrowable == null) )
11 - {
12 - return null;
13 - }
14 - if ( pThrowable instanceof SQLException )
15 - {
16 - return ((SQLException) pThrowable).getNextException();
17 - }
18 - return pThrowable.getCause();
19 - }
20 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.homonyms;
3 +
4 + import java.sql.*;
5 +
6 + public class ThrowableCause
7 + {
8 + public static Throwable get( Throwable pThrowable )
9 + {
10 + if ( (pThrowable == null) )
11 + {
12 + return null;
13 + }
14 + if ( pThrowable instanceof SQLException )
15 + {
16 + return ((SQLException) pThrowable).getNextException();
17 + }
18 + return pThrowable.getCause();
19 + }
20 + }