Here you can find the source of appendToExceptionList(List
public static List<SQLException> appendToExceptionList(List<SQLException> list, SQLException sqlException)
//package com.java2s; //License from project: Apache License import java.sql.SQLException; import java.util.LinkedList; import java.util.List; public class Main { public static List<SQLException> appendToExceptionList(List<SQLException> list, SQLException sqlException) { if (list == null) { list = new LinkedList<SQLException>(); }//from w w w. j a va 2 s . c o m list.add(sqlException); return list; } }