@Test public void testCreateWithEmptyMessage() { IOException ex = IOExceptionSupport.create(new RuntimeException("")); assertNotNull(ex.getMessage()); }
public static IOException create(Throwable cause) { if (cause instanceof IOException) { return (IOException) cause; } String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } return new IOException(message, cause); }
IOExceptionSupport { public static IOException create(Throwable cause) { if (cause instanceof IOException) { return (IOException) cause; } String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } return new IOException(message, cause); } }
IOExceptionSupport { public static IOException create(Throwable cause) { if (cause instanceof IOException) { return (IOException) cause; } String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } return new IOException(message, cause); }  }
IOExceptionSupport { public static IOException create(Throwable cause) { if (cause instanceof IOException) { return (IOException) cause; } String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } return new IOException(message, cause); }  static IOException create(Throwable cause); }
IOExceptionSupport { public static IOException create(Throwable cause) { if (cause instanceof IOException) { return (IOException) cause; } String message = cause.getMessage(); if (message == null || message.length() == 0) { message = cause.toString(); } return new IOException(message, cause); }  static IOException create(Throwable cause);  }