/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.StackTraceElement
 *  java.lang.String
 *  java.lang.StringBuilder
 *  java.lang.System
 *  java.lang.Throwable
 */
package com.google.code.microlog4android.format.command;

import com.google.code.microlog4android.Level;
import com.google.code.microlog4android.format.command.FormatCommandInterface;

public class ThrowableFormatCommand
implements FormatCommandInterface {
    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public String execute(String string2, String string3, long l, Level level, Object object, Throwable throwable) {
        StringBuilder stringBuilder = new StringBuilder();
        if (throwable == null) return stringBuilder.toString();
        stringBuilder.append(throwable.toString());
        String string4 = System.getProperty((String)"line.separator");
        StackTraceElement[] arrstackTraceElement = throwable.getStackTrace();
        int n = 0;
        while (n < arrstackTraceElement.length) {
            StackTraceElement stackTraceElement = arrstackTraceElement[n];
            stringBuilder.append(string4);
            stringBuilder.append("\tat ");
            stringBuilder.append(stackTraceElement.toString());
            ++n;
        }
        return stringBuilder.toString();
    }

    @Override
    public void init(String string2) {
    }
}

