Enum SubscriptionErrorType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SubscriptionErrorType>

    public enum SubscriptionErrorType
    extends java.lang.Enum<SubscriptionErrorType>

    Enumeration which represents the errors that can occur for a subject.

    The SubscriptionErrorType will be provided on a onSubscriptionError callback to a SubscriptionListener.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DELETED
      The subject has been deleted.
      INVALID_PARAMETERS
      Supplied parameters are invalid for this subject type.
      NOT_FOUND
      The subject could not be found.
      READ_DENIED
      The client does not have permission to read the subject.
      UNAVAILABLE
      The subject was not available.
      WRITE_DENIED
      The client does not have permission to write to the subject.
      WRITE_DENIED_DUE_TO_LICENSE
      The client cannot contribute due to the Liberator's licensing limits being exceeded.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SubscriptionErrorType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SubscriptionErrorType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

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

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

      • READ_DENIED

        public static final SubscriptionErrorType READ_DENIED

        The client does not have permission to read the subject.

      • WRITE_DENIED

        public static final SubscriptionErrorType WRITE_DENIED

        The client does not have permission to write to the subject.

      • WRITE_DENIED_DUE_TO_LICENSE

        public static final SubscriptionErrorType WRITE_DENIED_DUE_TO_LICENSE

        The client cannot contribute due to the Liberator's licensing limits being exceeded.

      • INVALID_PARAMETERS

        public static final SubscriptionErrorType INVALID_PARAMETERS

        Supplied parameters are invalid for this subject type.

    • Method Detail

      • values

        public static SubscriptionErrorType[] 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 (SubscriptionErrorType c : SubscriptionErrorType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubscriptionErrorType 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