Package io.github.thoroldvix.api
Class TranscriptRetrievalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.thoroldvix.api.TranscriptRetrievalException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionTranscriptRetrievalException
(String message) Constructs a new exception with the specified detail message.TranscriptRetrievalException
(String videoId, String message) Constructs a new exception with the specified detail message.TranscriptRetrievalException
(String videoId, String message, Throwable cause) Constructs a new exception with the specified detail message and cause.TranscriptRetrievalException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TranscriptRetrievalException
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 theThrowable.getCause()
method).
-
TranscriptRetrievalException
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
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 theThrowable.getCause()
method).
-
TranscriptRetrievalException
Constructs a new exception with the specified detail message.- Parameters:
message
- The detail message explaining the reason for the failure.
-
-
Method Details
-
getVideoId
- Returns:
- The ID of the video for which the transcript retrieval failed.
-