mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
lollipop版本分开,有些新特性android5.0和6.0不支持
This commit is contained in:
15
modules/book/src/main/java/me/ag2s/base/ThrowableUtils.java
Normal file
15
modules/book/src/main/java/me/ag2s/base/ThrowableUtils.java
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user