library/common/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
/**
   * Creates an instance of type {@link #TYPE_RENDERER}.
   *
   * @param cause The cause of the failure.
   * @param rendererIndex The index of the renderer in which the failure occurred.
   * @param rendererFormat The {@link Format} the renderer was using at the time of the exception,
   *     or null if the renderer wasn't using a {@link Format}.
   * @param rendererFormatSupport The {@link FormatSupport} of the renderer for {@code
   *     rendererFormat}. Ignored if {@code rendererFormat} is null.
   * @return The created instance.
   */
Creates an instance of type  #TYPE_RENDERER.
@param cause The cause of the failure.
@param rendererIndex The index of the renderer in which the failure occurred.
@param rendererFormat The  Format the renderer was using at the time of the exception,
or null if the renderer wasn't using a  Format.
@param rendererFormatSupport The  FormatSupport of the renderer for {@code
rendererFormat}. Ignored if  rendererFormat is null.
@return The created instance.
Creates an instance of type #TYPE_RENDERER . @param cause The cause of the failure . @param rendererIndex The index of the renderer in which the failure occurred . @param rendererFormat The Format the renderer was using at the time of the exception or null if the renderer wasn ' t using a Format . @param rendererFormatSupport The FormatSupport of the renderer for { @code rendererFormat } . Ignored if rendererFormat is null . @return The created instance .
public static ExoPlaybackException createForRenderer(
      Exception cause,
      String rendererName,
      int rendererIndex,
      @Nullable Format rendererFormat,
      @FormatSupport int rendererFormatSupport) {
    return createForRenderer(
        cause,
        rendererName,
        rendererIndex,
        rendererFormat,
        rendererFormatSupport,
        /* isRecoverable= */ false);
  }
public static ExoPlaybackException createForRenderer ( Exception cause , String rendererName , int rendererIndex , @ Nullable Format rendererFormat , @ FormatSupport int rendererFormatSupport ) { return createForRenderer ( cause , rendererName , rendererIndex , rendererFormat , rendererFormatSupport , /* isRecoverable= */ false ) ; }
Creates an instance of type {@link #TYPE_RENDERER}.
Creates an instance of type { @link #TYPE_RENDERER } .