Repository navigation
Expand file tree
/
Copy pathgroup_errors.go
More file actions
346 lines (267 loc) · 16.9 KB
/
Copy pathgroup_errors.go
File metadata and controls
346 lines (267 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
package tox
/*
#include <tox/tox.h>
*/
import "C"
type GroupNewError uint32
const (
ErrGroupNewTooLong GroupNewError = C.TOX_ERR_GROUP_NEW_TOO_LONG
ErrGroupNewEmpty GroupNewError = C.TOX_ERR_GROUP_NEW_EMPTY
ErrGroupNewInit GroupNewError = C.TOX_ERR_GROUP_NEW_INIT
ErrGroupNewState GroupNewError = C.TOX_ERR_GROUP_NEW_STATE
ErrGroupNewAnnounce GroupNewError = C.TOX_ERR_GROUP_NEW_ANNOUNCE
)
func (e GroupNewError) Error() string {
return errorString(C.tox_err_group_new_to_string(C.Tox_Err_Group_New(e)), "TOX_ERR_GROUP_NEW_", uint32(e))
}
type GroupJoinError uint32
const (
ErrGroupJoinInit GroupJoinError = C.TOX_ERR_GROUP_JOIN_INIT
ErrGroupJoinBadChatID GroupJoinError = C.TOX_ERR_GROUP_JOIN_BAD_CHAT_ID
ErrGroupJoinEmpty GroupJoinError = C.TOX_ERR_GROUP_JOIN_EMPTY
ErrGroupJoinTooLong GroupJoinError = C.TOX_ERR_GROUP_JOIN_TOO_LONG
ErrGroupJoinPassword GroupJoinError = C.TOX_ERR_GROUP_JOIN_PASSWORD
ErrGroupJoinCore GroupJoinError = C.TOX_ERR_GROUP_JOIN_CORE
)
func (e GroupJoinError) Error() string {
return errorString(C.tox_err_group_join_to_string(C.Tox_Err_Group_Join(e)), "TOX_ERR_GROUP_JOIN_", uint32(e))
}
type GroupIsConnectedError uint32
const ErrGroupIsConnectedGroupNotFound GroupIsConnectedError = C.TOX_ERR_GROUP_IS_CONNECTED_GROUP_NOT_FOUND
func (e GroupIsConnectedError) Error() string {
return errorString(C.tox_err_group_is_connected_to_string(C.Tox_Err_Group_Is_Connected(e)), "TOX_ERR_GROUP_IS_CONNECTED_", uint32(e))
}
type GroupDisconnectError uint32
const (
ErrGroupDisconnectGroupNotFound GroupDisconnectError = C.TOX_ERR_GROUP_DISCONNECT_GROUP_NOT_FOUND
ErrGroupDisconnectAlreadyDisconnected GroupDisconnectError = C.TOX_ERR_GROUP_DISCONNECT_ALREADY_DISCONNECTED
)
func (e GroupDisconnectError) Error() string {
return errorString(C.tox_err_group_disconnect_to_string(C.Tox_Err_Group_Disconnect(e)), "TOX_ERR_GROUP_DISCONNECT_", uint32(e))
}
type GroupLeaveError uint32
const (
ErrGroupLeaveGroupNotFound GroupLeaveError = C.TOX_ERR_GROUP_LEAVE_GROUP_NOT_FOUND
ErrGroupLeaveTooLong GroupLeaveError = C.TOX_ERR_GROUP_LEAVE_TOO_LONG
ErrGroupLeaveFailSend GroupLeaveError = C.TOX_ERR_GROUP_LEAVE_FAIL_SEND
)
func (e GroupLeaveError) Error() string {
return errorString(C.tox_err_group_leave_to_string(C.Tox_Err_Group_Leave(e)), "TOX_ERR_GROUP_LEAVE_", uint32(e))
}
type GroupSelfQueryError uint32
const ErrGroupSelfQueryGroupNotFound GroupSelfQueryError = C.TOX_ERR_GROUP_SELF_QUERY_GROUP_NOT_FOUND
func (e GroupSelfQueryError) Error() string {
return errorString(C.tox_err_group_self_query_to_string(C.Tox_Err_Group_Self_Query(e)), "TOX_ERR_GROUP_SELF_QUERY_", uint32(e))
}
type GroupSelfNameSetError uint32
const (
ErrGroupSelfNameSetGroupNotFound GroupSelfNameSetError = C.TOX_ERR_GROUP_SELF_NAME_SET_GROUP_NOT_FOUND
ErrGroupSelfNameSetTooLong GroupSelfNameSetError = C.TOX_ERR_GROUP_SELF_NAME_SET_TOO_LONG
ErrGroupSelfNameSetInvalid GroupSelfNameSetError = C.TOX_ERR_GROUP_SELF_NAME_SET_INVALID
ErrGroupSelfNameSetFailSend GroupSelfNameSetError = C.TOX_ERR_GROUP_SELF_NAME_SET_FAIL_SEND
)
func (e GroupSelfNameSetError) Error() string {
return errorString(C.tox_err_group_self_name_set_to_string(C.Tox_Err_Group_Self_Name_Set(e)), "TOX_ERR_GROUP_SELF_NAME_SET_", uint32(e))
}
type GroupSelfStatusSetError uint32
const (
ErrGroupSelfStatusSetGroupNotFound GroupSelfStatusSetError = C.TOX_ERR_GROUP_SELF_STATUS_SET_GROUP_NOT_FOUND
ErrGroupSelfStatusSetFailSend GroupSelfStatusSetError = C.TOX_ERR_GROUP_SELF_STATUS_SET_FAIL_SEND
)
func (e GroupSelfStatusSetError) Error() string {
return errorString(C.tox_err_group_self_status_set_to_string(C.Tox_Err_Group_Self_Status_Set(e)), "TOX_ERR_GROUP_SELF_STATUS_SET_", uint32(e))
}
type GroupPeerQueryError uint32
const (
ErrGroupPeerQueryGroupNotFound GroupPeerQueryError = C.TOX_ERR_GROUP_PEER_QUERY_GROUP_NOT_FOUND
ErrGroupPeerQueryPeerNotFound GroupPeerQueryError = C.TOX_ERR_GROUP_PEER_QUERY_PEER_NOT_FOUND
)
func (e GroupPeerQueryError) Error() string {
return errorString(C.tox_err_group_peer_query_to_string(C.Tox_Err_Group_Peer_Query(e)), "TOX_ERR_GROUP_PEER_QUERY_", uint32(e))
}
type GroupStateQueryError uint32
const ErrGroupStateQueryGroupNotFound GroupStateQueryError = C.TOX_ERR_GROUP_STATE_QUERY_GROUP_NOT_FOUND
func (e GroupStateQueryError) Error() string {
return errorString(C.tox_err_group_state_query_to_string(C.Tox_Err_Group_State_Query(e)), "TOX_ERR_GROUP_STATE_QUERY_", uint32(e))
}
type GroupTopicSetError uint32
const (
ErrGroupTopicSetGroupNotFound GroupTopicSetError = C.TOX_ERR_GROUP_TOPIC_SET_GROUP_NOT_FOUND
ErrGroupTopicSetTooLong GroupTopicSetError = C.TOX_ERR_GROUP_TOPIC_SET_TOO_LONG
ErrGroupTopicSetPermissions GroupTopicSetError = C.TOX_ERR_GROUP_TOPIC_SET_PERMISSIONS
ErrGroupTopicSetFailCreate GroupTopicSetError = C.TOX_ERR_GROUP_TOPIC_SET_FAIL_CREATE
ErrGroupTopicSetFailSend GroupTopicSetError = C.TOX_ERR_GROUP_TOPIC_SET_FAIL_SEND
ErrGroupTopicSetDisconnected GroupTopicSetError = C.TOX_ERR_GROUP_TOPIC_SET_DISCONNECTED
)
func (e GroupTopicSetError) Error() string {
return errorString(C.tox_err_group_topic_set_to_string(C.Tox_Err_Group_Topic_Set(e)), "TOX_ERR_GROUP_TOPIC_SET_", uint32(e))
}
type GroupByIDError uint32
const ErrGroupByIDNotFound GroupByIDError = C.TOX_ERR_GROUP_BY_ID_NOT_FOUND
func (e GroupByIDError) Error() string {
return errorString(C.tox_err_group_by_id_to_string(C.Tox_Err_Group_By_Id(e)), "TOX_ERR_GROUP_BY_ID_", uint32(e))
}
type GroupSendMessageError uint32
const (
ErrGroupSendMessageGroupNotFound GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_GROUP_NOT_FOUND
ErrGroupSendMessageTooLong GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_TOO_LONG
ErrGroupSendMessageEmpty GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_EMPTY
ErrGroupSendMessageBadType GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_BAD_TYPE
ErrGroupSendMessagePermissions GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_PERMISSIONS
ErrGroupSendMessageFailSend GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_FAIL_SEND
ErrGroupSendMessageDisconnected GroupSendMessageError = C.TOX_ERR_GROUP_SEND_MESSAGE_DISCONNECTED
)
func (e GroupSendMessageError) Error() string {
return errorString(C.tox_err_group_send_message_to_string(C.Tox_Err_Group_Send_Message(e)), "TOX_ERR_GROUP_SEND_MESSAGE_", uint32(e))
}
type GroupSendPrivateMessageError uint32
const (
ErrGroupSendPrivateMessageGroupNotFound GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_GROUP_NOT_FOUND
ErrGroupSendPrivateMessagePeerNotFound GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_PEER_NOT_FOUND
ErrGroupSendPrivateMessageTooLong GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_TOO_LONG
ErrGroupSendPrivateMessageEmpty GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_EMPTY
ErrGroupSendPrivateMessageBadType GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_BAD_TYPE
ErrGroupSendPrivateMessagePermissions GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_PERMISSIONS
ErrGroupSendPrivateMessageFailSend GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_FAIL_SEND
ErrGroupSendPrivateMessageDisconnected GroupSendPrivateMessageError = C.TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_DISCONNECTED
)
func (e GroupSendPrivateMessageError) Error() string {
return errorString(C.tox_err_group_send_private_message_to_string(C.Tox_Err_Group_Send_Private_Message(e)), "TOX_ERR_GROUP_SEND_PRIVATE_MESSAGE_", uint32(e))
}
type GroupSendCustomPacketError uint32
const (
ErrGroupSendCustomPacketGroupNotFound GroupSendCustomPacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PACKET_GROUP_NOT_FOUND
ErrGroupSendCustomPacketTooLong GroupSendCustomPacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PACKET_TOO_LONG
ErrGroupSendCustomPacketEmpty GroupSendCustomPacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PACKET_EMPTY
ErrGroupSendCustomPacketDisconnected GroupSendCustomPacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PACKET_DISCONNECTED
ErrGroupSendCustomPacketFailSend GroupSendCustomPacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PACKET_FAIL_SEND
)
func (e GroupSendCustomPacketError) Error() string {
return errorString(C.tox_err_group_send_custom_packet_to_string(C.Tox_Err_Group_Send_Custom_Packet(e)), "TOX_ERR_GROUP_SEND_CUSTOM_PACKET_", uint32(e))
}
type GroupSendCustomPrivatePacketError uint32
const (
ErrGroupSendCustomPrivatePacketGroupNotFound GroupSendCustomPrivatePacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_GROUP_NOT_FOUND
ErrGroupSendCustomPrivatePacketTooLong GroupSendCustomPrivatePacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_TOO_LONG
ErrGroupSendCustomPrivatePacketEmpty GroupSendCustomPrivatePacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_EMPTY
ErrGroupSendCustomPrivatePacketPeerNotFound GroupSendCustomPrivatePacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_PEER_NOT_FOUND
ErrGroupSendCustomPrivatePacketFailSend GroupSendCustomPrivatePacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_FAIL_SEND
ErrGroupSendCustomPrivatePacketDisconnected GroupSendCustomPrivatePacketError = C.TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_DISCONNECTED
)
func (e GroupSendCustomPrivatePacketError) Error() string {
return errorString(C.tox_err_group_send_custom_private_packet_to_string(C.Tox_Err_Group_Send_Custom_Private_Packet(e)), "TOX_ERR_GROUP_SEND_CUSTOM_PRIVATE_PACKET_", uint32(e))
}
type GroupInviteFriendError uint32
const (
ErrGroupInviteFriendGroupNotFound GroupInviteFriendError = C.TOX_ERR_GROUP_INVITE_FRIEND_GROUP_NOT_FOUND
ErrGroupInviteFriendFriendNotFound GroupInviteFriendError = C.TOX_ERR_GROUP_INVITE_FRIEND_FRIEND_NOT_FOUND
ErrGroupInviteFriendInviteFail GroupInviteFriendError = C.TOX_ERR_GROUP_INVITE_FRIEND_INVITE_FAIL
ErrGroupInviteFriendFailSend GroupInviteFriendError = C.TOX_ERR_GROUP_INVITE_FRIEND_FAIL_SEND
ErrGroupInviteFriendDisconnected GroupInviteFriendError = C.TOX_ERR_GROUP_INVITE_FRIEND_DISCONNECTED
)
func (e GroupInviteFriendError) Error() string {
return errorString(C.tox_err_group_invite_friend_to_string(C.Tox_Err_Group_Invite_Friend(e)), "TOX_ERR_GROUP_INVITE_FRIEND_", uint32(e))
}
type GroupInviteAcceptError uint32
const (
ErrGroupInviteAcceptBadInvite GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_BAD_INVITE
ErrGroupInviteAcceptInitFailed GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_INIT_FAILED
ErrGroupInviteAcceptTooLong GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_TOO_LONG
ErrGroupInviteAcceptEmpty GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_EMPTY
ErrGroupInviteAcceptPassword GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_PASSWORD
ErrGroupInviteAcceptFriendNotFound GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_FRIEND_NOT_FOUND
ErrGroupInviteAcceptFailSend GroupInviteAcceptError = C.TOX_ERR_GROUP_INVITE_ACCEPT_FAIL_SEND
)
func (e GroupInviteAcceptError) Error() string {
return errorString(C.tox_err_group_invite_accept_to_string(C.Tox_Err_Group_Invite_Accept(e)), "TOX_ERR_GROUP_INVITE_ACCEPT_", uint32(e))
}
type GroupSetPasswordError uint32
const (
ErrGroupSetPasswordGroupNotFound GroupSetPasswordError = C.TOX_ERR_GROUP_SET_PASSWORD_GROUP_NOT_FOUND
ErrGroupSetPasswordPermissions GroupSetPasswordError = C.TOX_ERR_GROUP_SET_PASSWORD_PERMISSIONS
ErrGroupSetPasswordTooLong GroupSetPasswordError = C.TOX_ERR_GROUP_SET_PASSWORD_TOO_LONG
ErrGroupSetPasswordFailSend GroupSetPasswordError = C.TOX_ERR_GROUP_SET_PASSWORD_FAIL_SEND
ErrGroupSetPasswordMalloc GroupSetPasswordError = C.TOX_ERR_GROUP_SET_PASSWORD_MALLOC
ErrGroupSetPasswordDisconnected GroupSetPasswordError = C.TOX_ERR_GROUP_SET_PASSWORD_DISCONNECTED
)
func (e GroupSetPasswordError) Error() string {
return errorString(C.tox_err_group_set_password_to_string(C.Tox_Err_Group_Set_Password(e)), "TOX_ERR_GROUP_SET_PASSWORD_", uint32(e))
}
type GroupSetTopicLockError uint32
const (
ErrGroupSetTopicLockGroupNotFound GroupSetTopicLockError = C.TOX_ERR_GROUP_SET_TOPIC_LOCK_GROUP_NOT_FOUND
ErrGroupSetTopicLockInvalid GroupSetTopicLockError = C.TOX_ERR_GROUP_SET_TOPIC_LOCK_INVALID
ErrGroupSetTopicLockPermissions GroupSetTopicLockError = C.TOX_ERR_GROUP_SET_TOPIC_LOCK_PERMISSIONS
ErrGroupSetTopicLockFailSet GroupSetTopicLockError = C.TOX_ERR_GROUP_SET_TOPIC_LOCK_FAIL_SET
ErrGroupSetTopicLockFailSend GroupSetTopicLockError = C.TOX_ERR_GROUP_SET_TOPIC_LOCK_FAIL_SEND
ErrGroupSetTopicLockDisconnected GroupSetTopicLockError = C.TOX_ERR_GROUP_SET_TOPIC_LOCK_DISCONNECTED
)
func (e GroupSetTopicLockError) Error() string {
return errorString(C.tox_err_group_set_topic_lock_to_string(C.Tox_Err_Group_Set_Topic_Lock(e)), "TOX_ERR_GROUP_SET_TOPIC_LOCK_", uint32(e))
}
type GroupSetVoiceStateError uint32
const (
ErrGroupSetVoiceStateGroupNotFound GroupSetVoiceStateError = C.TOX_ERR_GROUP_SET_VOICE_STATE_GROUP_NOT_FOUND
ErrGroupSetVoiceStatePermissions GroupSetVoiceStateError = C.TOX_ERR_GROUP_SET_VOICE_STATE_PERMISSIONS
ErrGroupSetVoiceStateFailSet GroupSetVoiceStateError = C.TOX_ERR_GROUP_SET_VOICE_STATE_FAIL_SET
ErrGroupSetVoiceStateFailSend GroupSetVoiceStateError = C.TOX_ERR_GROUP_SET_VOICE_STATE_FAIL_SEND
ErrGroupSetVoiceStateDisconnected GroupSetVoiceStateError = C.TOX_ERR_GROUP_SET_VOICE_STATE_DISCONNECTED
)
func (e GroupSetVoiceStateError) Error() string {
return errorString(C.tox_err_group_set_voice_state_to_string(C.Tox_Err_Group_Set_Voice_State(e)), "TOX_ERR_GROUP_SET_VOICE_STATE_", uint32(e))
}
type GroupSetPrivacyStateError uint32
const (
ErrGroupSetPrivacyStateGroupNotFound GroupSetPrivacyStateError = C.TOX_ERR_GROUP_SET_PRIVACY_STATE_GROUP_NOT_FOUND
ErrGroupSetPrivacyStatePermissions GroupSetPrivacyStateError = C.TOX_ERR_GROUP_SET_PRIVACY_STATE_PERMISSIONS
ErrGroupSetPrivacyStateFailSet GroupSetPrivacyStateError = C.TOX_ERR_GROUP_SET_PRIVACY_STATE_FAIL_SET
ErrGroupSetPrivacyStateFailSend GroupSetPrivacyStateError = C.TOX_ERR_GROUP_SET_PRIVACY_STATE_FAIL_SEND
ErrGroupSetPrivacyStateDisconnected GroupSetPrivacyStateError = C.TOX_ERR_GROUP_SET_PRIVACY_STATE_DISCONNECTED
)
func (e GroupSetPrivacyStateError) Error() string {
return errorString(C.tox_err_group_set_privacy_state_to_string(C.Tox_Err_Group_Set_Privacy_State(e)), "TOX_ERR_GROUP_SET_PRIVACY_STATE_", uint32(e))
}
type GroupSetPeerLimitError uint32
const (
ErrGroupSetPeerLimitGroupNotFound GroupSetPeerLimitError = C.TOX_ERR_GROUP_SET_PEER_LIMIT_GROUP_NOT_FOUND
ErrGroupSetPeerLimitPermissions GroupSetPeerLimitError = C.TOX_ERR_GROUP_SET_PEER_LIMIT_PERMISSIONS
ErrGroupSetPeerLimitFailSet GroupSetPeerLimitError = C.TOX_ERR_GROUP_SET_PEER_LIMIT_FAIL_SET
ErrGroupSetPeerLimitFailSend GroupSetPeerLimitError = C.TOX_ERR_GROUP_SET_PEER_LIMIT_FAIL_SEND
ErrGroupSetPeerLimitDisconnected GroupSetPeerLimitError = C.TOX_ERR_GROUP_SET_PEER_LIMIT_DISCONNECTED
)
func (e GroupSetPeerLimitError) Error() string {
return errorString(C.tox_err_group_set_peer_limit_to_string(C.Tox_Err_Group_Set_Peer_Limit(e)), "TOX_ERR_GROUP_SET_PEER_LIMIT_", uint32(e))
}
type GroupSetIgnoreError uint32
const (
ErrGroupSetIgnoreGroupNotFound GroupSetIgnoreError = C.TOX_ERR_GROUP_SET_IGNORE_GROUP_NOT_FOUND
ErrGroupSetIgnorePeerNotFound GroupSetIgnoreError = C.TOX_ERR_GROUP_SET_IGNORE_PEER_NOT_FOUND
ErrGroupSetIgnoreSelf GroupSetIgnoreError = C.TOX_ERR_GROUP_SET_IGNORE_SELF
)
func (e GroupSetIgnoreError) Error() string {
return errorString(C.tox_err_group_set_ignore_to_string(C.Tox_Err_Group_Set_Ignore(e)), "TOX_ERR_GROUP_SET_IGNORE_", uint32(e))
}
type GroupSetRoleError uint32
const (
ErrGroupSetRoleGroupNotFound GroupSetRoleError = C.TOX_ERR_GROUP_SET_ROLE_GROUP_NOT_FOUND
ErrGroupSetRolePeerNotFound GroupSetRoleError = C.TOX_ERR_GROUP_SET_ROLE_PEER_NOT_FOUND
ErrGroupSetRolePermissions GroupSetRoleError = C.TOX_ERR_GROUP_SET_ROLE_PERMISSIONS
ErrGroupSetRoleAssignment GroupSetRoleError = C.TOX_ERR_GROUP_SET_ROLE_ASSIGNMENT
ErrGroupSetRoleFailAction GroupSetRoleError = C.TOX_ERR_GROUP_SET_ROLE_FAIL_ACTION
ErrGroupSetRoleSelf GroupSetRoleError = C.TOX_ERR_GROUP_SET_ROLE_SELF
)
func (e GroupSetRoleError) Error() string {
return errorString(C.tox_err_group_set_role_to_string(C.Tox_Err_Group_Set_Role(e)), "TOX_ERR_GROUP_SET_ROLE_", uint32(e))
}
type GroupKickPeerError uint32
const (
ErrGroupKickPeerGroupNotFound GroupKickPeerError = C.TOX_ERR_GROUP_KICK_PEER_GROUP_NOT_FOUND
ErrGroupKickPeerPeerNotFound GroupKickPeerError = C.TOX_ERR_GROUP_KICK_PEER_PEER_NOT_FOUND
ErrGroupKickPeerPermissions GroupKickPeerError = C.TOX_ERR_GROUP_KICK_PEER_PERMISSIONS
ErrGroupKickPeerFailAction GroupKickPeerError = C.TOX_ERR_GROUP_KICK_PEER_FAIL_ACTION
ErrGroupKickPeerFailSend GroupKickPeerError = C.TOX_ERR_GROUP_KICK_PEER_FAIL_SEND
ErrGroupKickPeerSelf GroupKickPeerError = C.TOX_ERR_GROUP_KICK_PEER_SELF
)
func (e GroupKickPeerError) Error() string {
return errorString(C.tox_err_group_kick_peer_to_string(C.Tox_Err_Group_Kick_Peer(e)), "TOX_ERR_GROUP_KICK_PEER_", uint32(e))
}