Repository navigation
Expand file tree
/
Copy pathconference_errors.go
More file actions
110 lines (79 loc) · 4.8 KB
/
Copy pathconference_errors.go
File metadata and controls
110 lines (79 loc) · 4.8 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
package tox
/*
#include <tox/tox.h>
*/
import "C"
type ConferenceNewError uint32
const ErrConferenceNewInit ConferenceNewError = C.TOX_ERR_CONFERENCE_NEW_INIT
func (e ConferenceNewError) Error() string {
return errorString(C.tox_err_conference_new_to_string(C.Tox_Err_Conference_New(e)), "TOX_ERR_CONFERENCE_NEW_", uint32(e))
}
type ConferenceDeleteError uint32
const ErrConferenceDeleteConferenceNotFound ConferenceDeleteError = C.TOX_ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND
func (e ConferenceDeleteError) Error() string {
return errorString(C.tox_err_conference_delete_to_string(C.Tox_Err_Conference_Delete(e)), "TOX_ERR_CONFERENCE_DELETE_", uint32(e))
}
type ConferencePeerQueryError uint32
const (
ErrConferencePeerQueryConferenceNotFound ConferencePeerQueryError = C.TOX_ERR_CONFERENCE_PEER_QUERY_CONFERENCE_NOT_FOUND
ErrConferencePeerQueryPeerNotFound ConferencePeerQueryError = C.TOX_ERR_CONFERENCE_PEER_QUERY_PEER_NOT_FOUND
ErrConferencePeerQueryNoConnection ConferencePeerQueryError = C.TOX_ERR_CONFERENCE_PEER_QUERY_NO_CONNECTION
)
func (e ConferencePeerQueryError) Error() string {
return errorString(C.tox_err_conference_peer_query_to_string(C.Tox_Err_Conference_Peer_Query(e)), "TOX_ERR_CONFERENCE_PEER_QUERY_", uint32(e))
}
type ConferenceSetMaxOfflineError uint32
const ErrConferenceSetMaxOfflineConferenceNotFound ConferenceSetMaxOfflineError = C.TOX_ERR_CONFERENCE_SET_MAX_OFFLINE_CONFERENCE_NOT_FOUND
func (e ConferenceSetMaxOfflineError) Error() string {
return errorString(C.tox_err_conference_set_max_offline_to_string(C.Tox_Err_Conference_Set_Max_Offline(e)), "TOX_ERR_CONFERENCE_SET_MAX_OFFLINE_", uint32(e))
}
type ConferenceInviteError uint32
const (
ErrConferenceInviteConferenceNotFound ConferenceInviteError = C.TOX_ERR_CONFERENCE_INVITE_CONFERENCE_NOT_FOUND
ErrConferenceInviteFailSend ConferenceInviteError = C.TOX_ERR_CONFERENCE_INVITE_FAIL_SEND
ErrConferenceInviteNoConnection ConferenceInviteError = C.TOX_ERR_CONFERENCE_INVITE_NO_CONNECTION
)
func (e ConferenceInviteError) Error() string {
return errorString(C.tox_err_conference_invite_to_string(C.Tox_Err_Conference_Invite(e)), "TOX_ERR_CONFERENCE_INVITE_", uint32(e))
}
type ConferenceJoinError uint32
const (
ErrConferenceJoinInvalidLength ConferenceJoinError = C.TOX_ERR_CONFERENCE_JOIN_INVALID_LENGTH
ErrConferenceJoinWrongType ConferenceJoinError = C.TOX_ERR_CONFERENCE_JOIN_WRONG_TYPE
ErrConferenceJoinFriendNotFound ConferenceJoinError = C.TOX_ERR_CONFERENCE_JOIN_FRIEND_NOT_FOUND
ErrConferenceJoinDuplicate ConferenceJoinError = C.TOX_ERR_CONFERENCE_JOIN_DUPLICATE
ErrConferenceJoinInitFail ConferenceJoinError = C.TOX_ERR_CONFERENCE_JOIN_INIT_FAIL
ErrConferenceJoinFailSend ConferenceJoinError = C.TOX_ERR_CONFERENCE_JOIN_FAIL_SEND
)
func (e ConferenceJoinError) Error() string {
return errorString(C.tox_err_conference_join_to_string(C.Tox_Err_Conference_Join(e)), "TOX_ERR_CONFERENCE_JOIN_", uint32(e))
}
type ConferenceSendMessageError uint32
const (
ErrConferenceSendMessageConferenceNotFound ConferenceSendMessageError = C.TOX_ERR_CONFERENCE_SEND_MESSAGE_CONFERENCE_NOT_FOUND
ErrConferenceSendMessageTooLong ConferenceSendMessageError = C.TOX_ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG
ErrConferenceSendMessageNoConnection ConferenceSendMessageError = C.TOX_ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION
ErrConferenceSendMessageFailSend ConferenceSendMessageError = C.TOX_ERR_CONFERENCE_SEND_MESSAGE_FAIL_SEND
)
func (e ConferenceSendMessageError) Error() string {
return errorString(C.tox_err_conference_send_message_to_string(C.Tox_Err_Conference_Send_Message(e)), "TOX_ERR_CONFERENCE_SEND_MESSAGE_", uint32(e))
}
type ConferenceTitleError uint32
const (
ErrConferenceTitleConferenceNotFound ConferenceTitleError = C.TOX_ERR_CONFERENCE_TITLE_CONFERENCE_NOT_FOUND
ErrConferenceTitleInvalidLength ConferenceTitleError = C.TOX_ERR_CONFERENCE_TITLE_INVALID_LENGTH
ErrConferenceTitleFailSend ConferenceTitleError = C.TOX_ERR_CONFERENCE_TITLE_FAIL_SEND
)
func (e ConferenceTitleError) Error() string {
return errorString(C.tox_err_conference_title_to_string(C.Tox_Err_Conference_Title(e)), "TOX_ERR_CONFERENCE_TITLE_", uint32(e))
}
type ConferenceGetTypeError uint32
const ErrConferenceGetTypeConferenceNotFound ConferenceGetTypeError = C.TOX_ERR_CONFERENCE_GET_TYPE_CONFERENCE_NOT_FOUND
func (e ConferenceGetTypeError) Error() string {
return errorString(C.tox_err_conference_get_type_to_string(C.Tox_Err_Conference_Get_Type(e)), "TOX_ERR_CONFERENCE_GET_TYPE_", uint32(e))
}
type ConferenceByIDError uint32
const ErrConferenceByIDNotFound ConferenceByIDError = C.TOX_ERR_CONFERENCE_BY_ID_NOT_FOUND
func (e ConferenceByIDError) Error() string {
return errorString(C.tox_err_conference_by_id_to_string(C.Tox_Err_Conference_By_Id(e)), "TOX_ERR_CONFERENCE_BY_ID_", uint32(e))
}