Java List from listOfExceptionsAsString(List exs)

Here you can find the source of listOfExceptionsAsString(List exs)

Description

Lists exceptions using their toString(), one per line.

License

Open Source License

Declaration

public static String listOfExceptionsAsString(List<Exception> exs) 

Method Source Code

//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();
    }
}

Related

  1. listOf(T... args)
  2. listOf(T... elements)
  3. listOf(T... elems)
  4. listOf(T... values)
  5. listOfArrays(T[]... values)
  6. listOfIntegers2ArrayOfInts(List xs)
  7. listOfItems(List items, String separator, String finalConjunction)
  8. listOfOne()
  9. listOfOne(T x)