Enum Class DiftChatExceptionEnum

java.lang.Object
java.lang.Enum<DiftChatExceptionEnum>
io.github.guoshiqiufeng.dify.chat.exception.DiftChatExceptionEnum
All Implemented Interfaces:
io.github.guoshiqiufeng.dify.core.exception.BaseExceptionEnum, Serializable, Comparable<DiftChatExceptionEnum>, Constable

public enum DiftChatExceptionEnum extends Enum<DiftChatExceptionEnum> implements io.github.guoshiqiufeng.dify.core.exception.BaseExceptionEnum
Since:
2025/3/4 11:00
Version:
1.0
Author:
yanghq
  • Enum Constant Details

    • DELETE_ERROR

      public static final DiftChatExceptionEnum DELETE_ERROR
      删除失败
    • DATA_EXIST

      public static final DiftChatExceptionEnum DATA_EXIST
      数据重复添加
    • DIFY_APP_NOT_EXIST

      public static final DiftChatExceptionEnum DIFY_APP_NOT_EXIST
      App 不存在
    • DIFY_API_KET_INIT_ERROR

      public static final DiftChatExceptionEnum DIFY_API_KET_INIT_ERROR
      Api Key 初始化失败
    • DIFY_DATA_PARSING_FAILURE

      public static final DiftChatExceptionEnum DIFY_DATA_PARSING_FAILURE
      数据解析失败
    • DIFY_TTS_IS_NOT_ENABLED

      public static final DiftChatExceptionEnum DIFY_TTS_IS_NOT_ENABLED
      文字转语音未启用
    • DIFY_SPEECH_TO_TEXT_IS_NOT_ENABLED

      public static final DiftChatExceptionEnum DIFY_SPEECH_TO_TEXT_IS_NOT_ENABLED
      语音转文字未启用
    • DIFY_API_ERROR

      public static final DiftChatExceptionEnum DIFY_API_ERROR
      远程调用失败
  • Method Details

    • values

      public static DiftChatExceptionEnum[] 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 DiftChatExceptionEnum 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
    • getCode

      public Integer getCode()
      Specified by:
      getCode in interface io.github.guoshiqiufeng.dify.core.exception.BaseExceptionEnum
    • getMsg

      public String getMsg()
      Specified by:
      getMsg in interface io.github.guoshiqiufeng.dify.core.exception.BaseExceptionEnum