Configuration.addDefaultResource("thriftfs-site.xml");
}
public static IOException toThrift(Throwable t) {
if (t == null) {
return new IOException();
}
IOException ret = new IOException();
ret.clazz = t.getClass().getName();
ret.msg = t.getMessage();
ret.stack = "";
for (StackTraceElement frame : t.getStackTrace()) {
ret.stack += frame.toString() + "\n";