@Override public void setClientInfo(Properties properties) throws SQLClientInfoException { try { checkClosed(); } catch (final SQLException cause) { Map<String, ClientInfoStatus> failures = new HashMap<String, ClientInfoStatus>(); for (Map.Entry<Object, Object> e : properties.entrySet()) { failures.put((String) e.getKey(), ClientInfoStatus.REASON_UNKNOWN); } throw new SQLClientInfoException(GT.tr("This connection has been closed."), failures, cause); } Map<String, ClientInfoStatus> failures = new HashMap<String, ClientInfoStatus>(); for (String name : new String[]{"ApplicationName"}) { try { setClientInfo(name, properties.getProperty(name, null)); } catch (SQLClientInfoException e) { failures.putAll(e.getFailedProperties()); } } if (!failures.isEmpty()) { throw new SQLClientInfoException(GT.tr("One or more ClientInfo failed."), PSQLState.NOT_IMPLEMENTED.getState(), failures); } }
setClientInfo(name, properties.getProperty(name)); } catch (SQLClientInfoException e) { propertiesExceptions.putAll(e.getFailedProperties());
setClientInfo(name, properties.getProperty(name)); } catch (SQLClientInfoException e) { propertiesExceptions.putAll(e.getFailedProperties());
SQLClientInfoException e2 = (SQLClientInfoException) exception2; Map<String, ClientInfoStatus> map1 = e1.getFailedProperties(); Map<String, ClientInfoStatus> map2 = e2.getFailedProperties();