mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
16 lines
350 B
Java
16 lines
350 B
Java
package me.ag2s.base;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class ThrowableUtils {
|
|
|
|
|
|
public static @NonNull
|
|
IOException rethrowAsIOException(Throwable throwable) throws IOException {
|
|
IOException newException = new IOException(throwable.getMessage(), throwable);
|
|
throw newException;
|
|
}
|
|
}
|