public static SQLClientInfoException newSQLClientInfoException( String sqlState, Map<String, ClientInfoStatus> failedProperties, Throwable t, Object... args) { return new SQLClientInfoException(getMessageUtil().getCompleteMessage( sqlState, args), getSQLStateFromIdentifier(sqlState), getSeverityFromIdentifier(sqlState), failedProperties, t); }
public static SnappyException newSnappyException(String sqlState, Throwable t, String serverInfo, Object... args) { SnappyExceptionData payload = new SnappyExceptionData(getMessageUtil() .getCompleteMessage(sqlState, args), getSeverityFromIdentifier(sqlState)) .setSqlState(getSQLStateFromIdentifier(sqlState)); SnappyException se = new SnappyException(payload, serverInfo); if (t != null) { if (t instanceof SnappyException) { SnappyException next = (SnappyException)t; se.addToNextExceptions(next.getExceptionData()); if (next.getNextExceptions() != null) { se.getNextExceptions().addAll(next.getNextExceptions()); } } se.initCause(t); } return se; }