Java IOException Create toIOException(Exception e)

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

Description

to IO Exception

License

Open Source License

Declaration

public static IOException toIOException(Exception e) 

Method Source Code

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

import java.io.IOException;

public class Main {
    public static IOException toIOException(Exception e) {

        return e instanceof IOException ? (IOException) e : new IOException(e);
    }/*from ww  w.j a  va 2  s.co m*/
}

Related

  1. toIOE(Exception e)
  2. toIOException(Exception e)
  3. toIOException(ExecutionException e)
  4. toIOException(final Throwable e)
  5. toIOException(String msg, Throwable cause)