Enum Class ErrorReason

java.lang.Object
java.lang.Enum<ErrorReason>
com.caplin.streamlink.ErrorReason
All Implemented Interfaces:
Serializable, Comparable<ErrorReason>, Constable

public enum ErrorReason extends Enum<ErrorReason>

Enumeration that defines the reasons for an error being raised in a SubscriptionErrorEvent or a CommandErrorEvent.

  • Enum Constant Details

    • USER_CODE_1

      public static final ErrorReason USER_CODE_1

      Liberator auth module user reason 1

    • USER_CODE_2

      public static final ErrorReason USER_CODE_2

      Liberator auth module user reason 2

    • USER_CODE_3

      public static final ErrorReason USER_CODE_3

      Liberator auth module user reason 3

    • USER_CODE_4

      public static final ErrorReason USER_CODE_4

      Liberator auth module user reason 4

    • USER_CODE_5

      public static final ErrorReason USER_CODE_5

      Liberator auth module user reason 5

    • LICENSE

      public static final ErrorReason LICENSE

      Licence failure

    • NONE

      public static final ErrorReason NONE

      No Reason

  • Method Details

    • values

      public static ErrorReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null