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

public < T extends SQLException > T toFlatSQLException ( Class < T > type ) throws ClassCastException { return type . cast ( toFlatSQLException ( ) ) ; }
converts the builder to the appropriate sqlexception instance and casts to the specified type t .
