Example usage for java.sql SQLClientInfoException initCause

List of usage examples for java.sql SQLClientInfoException initCause

Introduction

In this page you can find the example usage for java.sql SQLClientInfoException initCause.

Prototype

public synchronized Throwable initCause(Throwable cause) 

Source Link

Document

Initializes the cause of this throwable to the specified value.

Usage

From source file:com.adaptris.jdbc.connection.FailoverDataSource.java

protected static SQLClientInfoException wrapSQLClientInfoException(Exception e) {
    if (e instanceof SQLClientInfoException) {
        return (SQLClientInfoException) e;
    }/* w w w  . java2  s  .c  om*/
    SQLClientInfoException e2 = new SQLClientInfoException();
    e2.initCause(e);
    return e2;
}