OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 132 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 132 Rev 156
Line 79... Line 79...
79
 
79
 
80
        return createExn(exnClass, msg, cause);
80
        return createExn(exnClass, msg, cause);
81
    }
81
    }
82
 
82
 
83
    static public String getStackTrace(Throwable cause) {
83
    static public String getStackTrace(Throwable cause) {
84
        final StringWriter res = new StringWriter(128);
84
        final StringWriter res = new StringWriter(8192);
85
        final PrintWriter pw = new PrintWriter(res);
85
        final PrintWriter pw = new PrintWriter(res);
86
        try {
86
        try {
87
            cause.printStackTrace(pw);
87
            cause.printStackTrace(pw);
88
        } finally {
88
        } finally {
89
            pw.close();
89
            pw.close();