public QueryFailedException(Connection connection,DN dn,Filter filter,Throwable cause){
  super(MessageFormat.format("Failed to complete query:\n" + "      DN: {0}\n" + "    Conn: {1}\n"+ "  Filter: {2}",dn,connection,filter),cause);
}

public QueryFailedException ( Connection connection , DN dn , Filter filter , Throwable cause ) { super ( MessageFormat . format ( "Failed to complete query:\n" + "      DN: {0}\n" + "    Conn: {1}\n" + "  Filter: {2}" , dn , connection , filter ) , cause ) ; }
creates a formatted exception based on the values provided .
