List of usage examples for java.sql SQLClientInfoException SQLClientInfoException
public SQLClientInfoException()
SQLClientInfoException
Object. From source file:com.adaptris.jdbc.connection.FailoverDatasourceTest.java
@Test public void testExceptionWrappers() { assertEquals(SQLClientInfoException.class, wrapSQLClientInfoException(new SQLClientInfoException()).getClass()); assertEquals(SQLClientInfoException.class, wrapSQLClientInfoException(new Exception()).getClass()); assertEquals(SQLException.class, wrapSQLException(new Exception()).getClass()); assertEquals(SQLException.class, wrapSQLException(new SQLException()).getClass()); }
From source file:com.adaptris.jdbc.connection.FailoverDataSource.java
protected static SQLClientInfoException wrapSQLClientInfoException(Exception e) { if (e instanceof SQLClientInfoException) { return (SQLClientInfoException) e; }/*from w w w . ja v a 2s . c o m*/ SQLClientInfoException e2 = new SQLClientInfoException(); e2.initCause(e); return e2; }
From source file:net.starschema.clouddb.jdbc.BQConnection.java
/** * <p>//from www . j a v a2 s . c o m * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public void setClientInfo(Properties properties) throws SQLClientInfoException { SQLClientInfoException e = new SQLClientInfoException(); e.setNextException(new BQSQLException("Not implemented. setClientInfo(properties)")); throw e; }
From source file:net.starschema.clouddb.jdbc.BQConnection.java
/** * <p>// w ww .j a v a 2 s . c o m * <h1>Implementation Details:</h1><br> * Not implemented yet. * </p> * * @throws BQSQLException */ @Override public void setClientInfo(String name, String value) throws SQLClientInfoException { SQLClientInfoException e = new SQLClientInfoException(); e.setNextException(new BQSQLException("Not implemented. setClientInfo(properties)")); throw e; }