public <T extends SQLException>T toSQLException(Class<T> type) throws ClassCastException {
  return type.cast(toSQLException());
}

public < T extends SQLException > T toSQLException ( Class < T > type ) throws ClassCastException { return type . cast ( toSQLException ( ) ) ; }
converts the builder to the appropriate sqlexception instance ( optionally with a chain of additional exceptions ) and casts to the specified type t .
