java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.schabi.newpipe.extractor.services.youtube.dashmanifestcreators.CreationException
All Implemented Interfaces:
Serializable

public final class CreationException extends RuntimeException
Exception that is thrown when a YouTube DASH manifest creator encounters a problem while creating a manifest.
See Also:
  • Constructor Details

    • CreationException

      public CreationException(String message)
      Create a new CreationException with a detail message.
      Parameters:
      message - the detail message to add in the exception
    • CreationException

      public CreationException(String message, Exception cause)
      Create a new CreationException with a detail message and a cause.
      Parameters:
      message - the detail message to add in the exception
      cause - the exception cause of this CreationException
  • Method Details

    • couldNotAddElement

      @Nonnull public static CreationException couldNotAddElement(String element, Exception cause)
      Create a new CreationException with a cause and the following detail message format:
      "Could not add " + element + " element", cause, where element is an element of a DASH manifest.
      Parameters:
      element - the element which was not added to the DASH document
      cause - the exception which prevented addition of the element to the DASH document
      Returns:
      a new CreationException
    • couldNotAddElement

      @Nonnull public static CreationException couldNotAddElement(String element, String reason)
      Create a new CreationException with a cause and the following detail message format:
      "Could not add " + element + " element: " + reason, where element is an element of a DASH manifest and reason the reason why this element cannot be added to the DASH document.
      Parameters:
      element - the element which was not added to the DASH document
      reason - the reason message of why the element has been not added to the DASH document
      Returns:
      a new CreationException