Class CreationException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class CreationException
    extends java.lang.RuntimeException
    Exception that is thrown when a YouTube DASH manifest creator encounters a problem while creating a manifest.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CreationException couldNotAddElement​(java.lang.String element, java.lang.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.
      static CreationException couldNotAddElement​(java.lang.String element, java.lang.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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CreationException

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

        public CreationException​(java.lang.String message,
                                 java.lang.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 Detail

      • couldNotAddElement

        @Nonnull
        public static CreationException couldNotAddElement​(java.lang.String element,
                                                           java.lang.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​(java.lang.String element,
                                                           java.lang.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