mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 18:07:16 +01:00
29 lines
895 B
Java
29 lines
895 B
Java
package io.reactivex.rxjava3.exceptions;
|
|
|
|
import io.reactivex.rxjava3.annotations.NonNull;
|
|
import io.reactivex.rxjava3.internal.util.ExceptionHelper;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes18.dex */
|
|
public final class Exceptions {
|
|
private Exceptions() {
|
|
throw new IllegalStateException("No instances!");
|
|
}
|
|
|
|
@NonNull
|
|
public static RuntimeException propagate(@NonNull Throwable th) {
|
|
throw ExceptionHelper.wrapOrThrow(th);
|
|
}
|
|
|
|
public static void throwIfFatal(@NonNull Throwable th) {
|
|
if (th instanceof VirtualMachineError) {
|
|
throw ((VirtualMachineError) th);
|
|
}
|
|
if (th instanceof ThreadDeath) {
|
|
throw ((ThreadDeath) th);
|
|
}
|
|
if (th instanceof LinkageError) {
|
|
throw ((LinkageError) th);
|
|
}
|
|
}
|
|
}
|