FormatUtils.java

codebase/src/net/sourceforge/pain/util/FormatUtils.java · 328 B

From the archive pain_0_45.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.util;

/**
 * Set of formatiing utils.
 */
public class FormatUtils {
    private FormatUtils(){}

    public static String formatStacktrace(Exception e) {
        return "{RError!: " + e.getClass().getName() + ":" + e.getMessage() + "\n{w" + ClassUtils.getStackTrace(e) + "{x";
    }
}

Site Stats

Snippets: 1791
Codebases: 571