Enum MediaQueue.Error

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MediaQueue.Error>
    Enclosing class:
    MediaQueue

    public static enum MediaQueue.Error
    extends java.lang.Enum<MediaQueue.Error>
    Error messages.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static MediaQueue.Error getErrorById​(int id)
      Gets the error by ID.
      int getErrorId()
      Gets the ID for the error.
      static MediaQueue.Error valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MediaQueue.Error[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ERROR_BAD_REQUEST

        public static final MediaQueue.Error ERROR_BAD_REQUEST
        The request failed due to missing or invalid parameters.
      • ERROR_BAD_RESPONSE

        public static final MediaQueue.Error ERROR_BAD_RESPONSE
        The request failed due to an unexpected response from the server.
      • ERROR_CONNECTION

        public static final MediaQueue.Error ERROR_CONNECTION
        The request failed due to a network connection error.
      • ERROR_INTERNAL

        public static final MediaQueue.Error ERROR_INTERNAL
        The request failed due to an unexpected internal error.
      • ERROR_SERVICE_NOT_FOUND

        public static final MediaQueue.Error ERROR_SERVICE_NOT_FOUND
        The request failed due to the unavailability of the service.
      • ERROR_ACCESS_FORBIDDEN

        public static final MediaQueue.Error ERROR_ACCESS_FORBIDDEN
        The request failed due to no authorization to access the service.
    • Method Detail

      • values

        public static MediaQueue.Error[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MediaQueue.Error c : MediaQueue.Error.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MediaQueue.Error valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getErrorById

        public static MediaQueue.Error getErrorById​(int id)
        Gets the error by ID.
      • getErrorId

        public int getErrorId()
        Gets the ID for the error.