Class CreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.schabi.newpipe.extractor.services.youtube.dashmanifestcreators.CreationException
- All Implemented Interfaces:
Serializable
Exception that is thrown when a YouTube DASH manifest creator encounters a problem
while creating a manifest.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreationException(String message) Create a newCreationExceptionwith a detail message.CreationException(String message, Exception cause) Create a newCreationExceptionwith a detail message and a cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic CreationExceptioncouldNotAddElement(String element, Exception cause) Create a newCreationExceptionwith a cause and the following detail message format:
"Could not add " + element + " element", cause, whereelementis an element of a DASH manifest.static CreationExceptioncouldNotAddElement(String element, String reason) Create a newCreationExceptionwith a cause and the following detail message format:
"Could not add " + element + " element: " + reason, whereelementis an element of a DASH manifest andreasonthe reason why this element cannot be added to the DASH document.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CreationException
Create a newCreationExceptionwith a detail message.- Parameters:
message- the detail message to add in the exception
-
CreationException
Create a newCreationExceptionwith a detail message and a cause.- Parameters:
message- the detail message to add in the exceptioncause- the exception cause of thisCreationException
-
-
Method Details
-
couldNotAddElement
Create a newCreationExceptionwith a cause and the following detail message format:
"Could not add " + element + " element", cause, whereelementis an element of a DASH manifest.- Parameters:
element- the element which was not added to the DASH documentcause- the exception which prevented addition of the element to the DASH document- Returns:
- a new
CreationException
-
couldNotAddElement
Create a newCreationExceptionwith a cause and the following detail message format:
"Could not add " + element + " element: " + reason, whereelementis an element of a DASH manifest andreasonthe reason why this element cannot be added to the DASH document.- Parameters:
element- the element which was not added to the DASH documentreason- the reason message of why the element has been not added to the DASH document- Returns:
- a new
CreationException
-