Files
rr3-apk/decompiled/sources/com/mbridge/msdk/playercommon/exoplayer2/ExoPlaybackException.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

53 lines
1.7 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2;
import com.mbridge.msdk.playercommon.exoplayer2.util.Assertions;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* loaded from: classes4.dex */
public final class ExoPlaybackException extends Exception {
public static final int TYPE_RENDERER = 1;
public static final int TYPE_SOURCE = 0;
public static final int TYPE_UNEXPECTED = 2;
public final int rendererIndex;
public final int type;
@Retention(RetentionPolicy.SOURCE)
public @interface Type {
}
public static ExoPlaybackException createForRenderer(Exception exc, int i) {
return new ExoPlaybackException(1, null, exc, i);
}
public static ExoPlaybackException createForSource(IOException iOException) {
return new ExoPlaybackException(0, null, iOException, -1);
}
public static ExoPlaybackException createForUnexpected(RuntimeException runtimeException) {
return new ExoPlaybackException(2, null, runtimeException, -1);
}
private ExoPlaybackException(int i, String str, Throwable th, int i2) {
super(str, th);
this.type = i;
this.rendererIndex = i2;
}
public final IOException getSourceException() {
Assertions.checkState(this.type == 0);
return (IOException) getCause();
}
public final Exception getRendererException() {
Assertions.checkState(this.type == 1);
return (Exception) getCause();
}
public final RuntimeException getUnexpectedException() {
Assertions.checkState(this.type == 2);
return (RuntimeException) getCause();
}
}