All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dooapp.gaedo.utils.ExceptionUtils Maven / Gradle / Ivy

The newest version!
package com.dooapp.gaedo.utils;

import java.util.Collection;

/**
 * Class containing some utilities regarding exceptions
 * @author ndx
 *
 */
public class ExceptionUtils {

	public static String collectMessages(
			Collection exceptions) {
		StringBuilder sOut = new StringBuilder();
		for(Exception e: exceptions) {
			sOut.append("\n\n\t").append(e.getMessage());
		}
		return sOut.toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy