Lines Matching refs:ex

47         SQLException ex = new SQLException();
48 assertTrue(ex.getMessage() == null
49 && ex.getSQLState() == null
50 && ex.getCause() == null
51 && ex.getErrorCode() == 0);
59 SQLException ex = new SQLException(reason);
60 assertTrue(ex.getMessage().equals(reason)
61 && ex.getSQLState() == null
62 && ex.getCause() == null
63 && ex.getErrorCode() == 0);
71 SQLException ex = new SQLException(reason, state);
72 assertTrue(ex.getMessage().equals(reason)
73 && ex.getSQLState().equals(state)
74 && ex.getCause() == null
75 && ex.getErrorCode() == 0);
83 SQLException ex = new SQLException(reason, state, errorCode);
84 assertTrue(ex.getMessage().equals(reason)
85 && ex.getSQLState().equals(state)
86 && ex.getCause() == null
87 && ex.getErrorCode() == errorCode);
95 SQLException ex = new SQLException(reason, state, errorCode, t);
96 assertTrue(ex.getMessage().equals(reason)
97 && ex.getSQLState().equals(state)
98 && cause.equals(ex.getCause().toString())
99 && ex.getErrorCode() == errorCode);
107 SQLException ex = new SQLException(reason, state, t);
108 assertTrue(ex.getMessage().equals(reason)
109 && ex.getSQLState().equals(state)
110 && cause.equals(ex.getCause().toString())
111 && ex.getErrorCode() == 0);
119 SQLException ex = new SQLException(reason, t);
120 assertTrue(ex.getMessage().equals(reason)
121 && ex.getSQLState() == null
122 && cause.equals(ex.getCause().toString())
123 && ex.getErrorCode() == 0);
131 SQLException ex = new SQLException((Throwable)null);
132 assertTrue(ex.getMessage() == null
133 && ex.getSQLState() == null
134 && ex.getCause() == null
135 && ex.getErrorCode() == 0);
143 SQLException ex = new SQLException(t);
144 assertTrue(ex.getMessage().equals(cause)
145 && ex.getSQLState() == null
146 && cause.equals(ex.getCause().toString())
147 && ex.getErrorCode() == 0);
169 SQLException ex = new SQLException("Exception 1", t1);
172 ex.setNextException(ex1);
173 ex.setNextException(ex2);
175 for (Throwable e : ex) {
186 SQLException ex = new SQLException("Exception 1", t1);
189 ex.setNextException(ex1);
190 ex.setNextException(ex2);
192 while (ex != null) {
193 assertTrue(msgs[num++].equals(ex.getMessage()));
194 Throwable c = ex.getCause();
199 ex = ex.getNextException();