import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Utilitaire String
* Créer une representation String de l'exception.
*/
public class ReprésentationString {
public static String stringifierException(Throwable e) {
StringWriter stm = new StringWriter();
PrintWriter wrt = new PrintWriter(stm);
e.printStackTrace(wrt);
wrt.close();
return stm.toString();
}
}