Here you can find the source of toIOE(Exception e)
private static IOException toIOE(Exception e)
//package com.java2s; /*/*from w w w .j a v a 2 s . com*/ * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2007. * * Licensed under the Aduna BSD-style license. */ import java.io.IOException; public class Main { private static IOException toIOE(Exception e) { return toIOE(e.getMessage(), e); } private static IOException toIOE(String message, Exception e) { IOException result = new IOException(message); result.initCause(e); return result; } }