Class TranscriptRetrievalException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.thoroldvix.api.TranscriptRetrievalException
All Implemented Interfaces:
Serializable

public class TranscriptRetrievalException extends Exception
Exception thrown when a transcript cannot be retrieved for a specified video.

This exception encapsulates the details of the error encountered during the retrieval of a YouTube video transcript.

See Also:
  • Constructor Details

    • TranscriptRetrievalException

      public TranscriptRetrievalException(String videoId, String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause.
      Parameters:
      videoId - The ID of the video for which the transcript retrieval failed.
      message - The detail message explaining the reason for the failure.
      cause - The cause of the failure (which is saved for later retrieval by the Throwable.getCause() method).
    • TranscriptRetrievalException

      public TranscriptRetrievalException(String videoId, String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      videoId - The ID of the video for which the transcript retrieval failed.
      message - The detail message explaining the reason for the failure.
    • TranscriptRetrievalException

      public TranscriptRetrievalException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause.
      Parameters:
      message - The detail message explaining the reason for the failure.
      cause - The cause of the failure (which is saved for later retrieval by the Throwable.getCause() method).
    • TranscriptRetrievalException

      public TranscriptRetrievalException(String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - The detail message explaining the reason for the failure.
  • Method Details

    • getVideoId

      public String getVideoId()
      Returns:
      The ID of the video for which the transcript retrieval failed.