public static enum RongIM.SentMessageErrorCode extends java.lang.Enum<RongIM.SentMessageErrorCode>
枚举常量和说明 |
---|
FORBIDDEN_IN_GROUP
群组禁言
|
NOT_IN_CHATROOM
不在聊天室。
|
NOT_IN_DISCUSSION
不在讨论组。
|
NOT_IN_GROUP
不在群组。
|
RC_APP_PUBLICSERVICE_UNFOLLOW
未关注此公众号
|
RC_MSG_BLOCKED_SENSITIVE_WORD
发送的消息中包含敏感词 (发送方发送失败,接收方不会收到消息)
|
RC_MSG_REPLACED_SENSITIVE_WORD
消息中敏感词已经被替换 (接收方可以收到被替换之后的消息)
|
REJECTED_BY_BLACKLIST
在黑名单中。
|
UNKNOWN
未知错误。
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMessage()
获取错误消息。
|
int |
getValue()
获取错误代码值。
|
static RongIM.SentMessageErrorCode |
setValue(int code)
设置错误代码值。
|
static RongIM.SentMessageErrorCode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static RongIM.SentMessageErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RongIM.SentMessageErrorCode UNKNOWN
public static final RongIM.SentMessageErrorCode NOT_IN_DISCUSSION
public static final RongIM.SentMessageErrorCode NOT_IN_GROUP
public static final RongIM.SentMessageErrorCode FORBIDDEN_IN_GROUP
public static final RongIM.SentMessageErrorCode NOT_IN_CHATROOM
public static final RongIM.SentMessageErrorCode REJECTED_BY_BLACKLIST
public static final RongIM.SentMessageErrorCode RC_MSG_BLOCKED_SENSITIVE_WORD
public static final RongIM.SentMessageErrorCode RC_MSG_REPLACED_SENSITIVE_WORD
public static final RongIM.SentMessageErrorCode RC_APP_PUBLICSERVICE_UNFOLLOW
public static RongIM.SentMessageErrorCode[] values()
for (RongIM.SentMessageErrorCode c : RongIM.SentMessageErrorCode.values()) System.out.println(c);
public static RongIM.SentMessageErrorCode valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getValue()
public java.lang.String getMessage()
public static RongIM.SentMessageErrorCode setValue(int code)
code
- 错误代码。