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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription数据重复添加删除失败远程调用失败Api Key 初始化失败App 不存在数据解析失败语音转文字未启用文字转语音未启用 -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getMsg()static DiftChatExceptionEnumReturns the enum constant of this class with the specified name.static DiftChatExceptionEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELETE_ERROR
删除失败 -
DATA_EXIST
数据重复添加 -
DIFY_APP_NOT_EXIST
App 不存在 -
DIFY_API_KET_INIT_ERROR
Api Key 初始化失败 -
DIFY_DATA_PARSING_FAILURE
数据解析失败 -
DIFY_TTS_IS_NOT_ENABLED
文字转语音未启用 -
DIFY_SPEECH_TO_TEXT_IS_NOT_ENABLED
语音转文字未启用 -
DIFY_API_ERROR
远程调用失败
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
- Specified by:
getCodein interfaceio.github.guoshiqiufeng.dify.core.exception.BaseExceptionEnum
-
getMsg
- Specified by:
getMsgin interfaceio.github.guoshiqiufeng.dify.core.exception.BaseExceptionEnum
-