ExceptionHelper.smali

.class public final Lio/reactivex/internal/util/ExceptionHelper;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lio/reactivex/internal/util/ExceptionHelper$Termination;
    }
.end annotation


# direct methods
.method static constructor <clinit>()V
    .registers 1

    new-instance v0, Lio/reactivex/internal/util/ExceptionHelper$Termination;

    invoke-direct {v0}, Lio/reactivex/internal/util/ExceptionHelper$Termination;-><init>()V

    return-void
.end method

.method public static a(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
    .registers 2

    instance-of v0, p0, Ljava/lang/Error;

    if-nez v0, :cond_11

    instance-of v0, p0, Ljava/lang/RuntimeException;

    if-eqz v0, :cond_b

    check-cast p0, Ljava/lang/RuntimeException;

    return-object p0

    :cond_b
    new-instance v0, Ljava/lang/RuntimeException;

    invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V

    return-object v0

    :cond_11
    check-cast p0, Ljava/lang/Error;

    throw p0
.end method