Here you can find the source of listOfExceptionsAsString(List
public static String listOfExceptionsAsString(List<Exception> exs)
//package com.java2s; import java.util.*; public class Main { /**//from w w w . jav a2 s. c om * Lists exceptions using their toString(), one per line. */ public static String listOfExceptionsAsString(List<Exception> exs) { StringBuilder sb = new StringBuilder(); for (Exception ex : exs) { sb.append(ex.toString()).append("\n"); } return sb.toString(); } }