code: public static void throwSQLException(Exception cause, String theType, String value)
              throws SQLException {
          throw new SQLException("Invalid " + theType + " value: " + value, cause);
      }
docs: An helper method to build and throw a SQL Exception when a property cannot be set.
  @param cause the cause
  @param theType the type of the property
  @param value the value of the property
  @throws SQLException the SQL Exception