Initial
[frank.git] / prod / net / jaekl / qd / util / ExceptionUtils.java
1 package net.jaekl.qd.util;
2
3 import java.io.Closeable;
4 import java.io.IOException;
5
6 import net.jaekl.qd.QDException;
7
8 public class ExceptionUtils {
9         public static void tryClose(Closeable closeable) throws QDException {
10                 try {
11                         if (null != closeable) {
12                                 closeable.close();
13                         }
14                 }
15                 catch (IOException ioe) {
16                         throw new QDException(ioe);
17                 }
18         }
19 }