Java Dump Exception dumpException(Throwable ex)

Here you can find the source of dumpException(Throwable ex)

Description

dump Exception

License

Open Source License

Declaration

private static void dumpException(Throwable ex) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    private static final String EXCEPTION_FILE = "/mnt/us/system/fontfix.log";

    private static void dumpException(Throwable ex) {
        try {/* w  ww. ja v a  2  s . c om*/
            FileWriter fw = new FileWriter(EXCEPTION_FILE, true);
            PrintWriter pw = new PrintWriter(fw);
            ex.printStackTrace(pw);
            fw.close();
        } catch (Throwable e) {
        }
    }
}

Related

  1. dumpException(String fileName, Throwable t)
  2. dumpException(Throwable e)