Enum TrocketErrorCode

    • Enum Constant Detail

      • FAILEDOPERATION_INSTANCENOTREADY

        public static final TrocketErrorCode FAILEDOPERATION_INSTANCENOTREADY
      • LIMITEXCEEDED_TOPICNUM

        public static final TrocketErrorCode LIMITEXCEEDED_TOPICNUM
      • RESOURCENOTFOUND_GROUP

        public static final TrocketErrorCode RESOURCENOTFOUND_GROUP
      • RESOURCENOTFOUND_INSTANCE

        public static final TrocketErrorCode RESOURCENOTFOUND_INSTANCE
      • RESOURCENOTFOUND_TOPIC

        public static final TrocketErrorCode RESOURCENOTFOUND_TOPIC
      • UNSUPPORTEDOPERATION_RESOURCEALREADYEXISTS

        public static final TrocketErrorCode UNSUPPORTEDOPERATION_RESOURCEALREADYEXISTS
    • Method Detail

      • values

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

        public static TrocketErrorCode valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Returns:
        errorcode value