Java IOException Create toIOE(Exception e)

Here you can find the source of toIOE(Exception e)

Description

to IOE

License

BSD License

Declaration

private static IOException toIOE(Exception e) 

Method Source Code

//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;
    }
}

Related

  1. toIOException(Exception e)
  2. toIOException(Exception e)
  3. toIOException(ExecutionException e)
  4. toIOException(final Throwable e)