-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublic_errors.h
188 lines (174 loc) · 11.9 KB
/
public_errors.h
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
#ifndef PUBLIC_ERRORS_H
#define PUBLIC_ERRORS_H
//The idea here is: the values are 2 bytes wide, the first byte identifies the group, the second the count within that group
//general
const unsigned int ERROR_ok = 0x0000;
const unsigned int ERROR_undefined = 0x0001;
const unsigned int ERROR_not_implemented = 0x0002;
const unsigned int ERROR_ok_no_update = 0x0003;
const unsigned int ERROR_dont_notify = 0x0004;
const unsigned int ERROR_lib_time_limit_reached = 0x0005;
//dunno
const unsigned int ERROR_command_not_found = 0x0100;
const unsigned int ERROR_unable_to_bind_network_port = 0x0101;
const unsigned int ERROR_no_network_port_available = 0x0102;
const unsigned int ERROR_port_already_in_use = 0x0103;
//client
const unsigned int ERROR_client_invalid_id = 0x0200;
const unsigned int ERROR_client_nickname_inuse = 0x0201;
const unsigned int ERROR_client_protocol_limit_reached = 0x0203;
const unsigned int ERROR_client_invalid_type = 0x0204;
const unsigned int ERROR_client_already_subscribed = 0x0205;
const unsigned int ERROR_client_not_logged_in = 0x0206;
const unsigned int ERROR_client_could_not_validate_identity = 0x0207;
const unsigned int ERROR_client_version_outdated = 0x020a;
const unsigned int ERROR_client_is_flooding = 0x020c;
const unsigned int ERROR_client_hacked = 0x020d;
const unsigned int ERROR_client_cannot_verify_now = 0x020e;
const unsigned int ERROR_client_login_not_permitted = 0x020f;
const unsigned int ERROR_client_not_subscribed = 0x0210;
//channel
const unsigned int ERROR_channel_invalid_id = 0x0300;
const unsigned int ERROR_channel_protocol_limit_reached = 0x0301;
const unsigned int ERROR_channel_already_in = 0x0302;
const unsigned int ERROR_channel_name_inuse = 0x0303;
const unsigned int ERROR_channel_not_empty = 0x0304;
const unsigned int ERROR_channel_can_not_delete_default = 0x0305;
const unsigned int ERROR_channel_default_require_permanent = 0x0306;
const unsigned int ERROR_channel_invalid_flags = 0x0307;
const unsigned int ERROR_channel_parent_not_permanent = 0x0308;
const unsigned int ERROR_channel_maxclients_reached = 0x0309;
const unsigned int ERROR_channel_maxfamily_reached = 0x030a;
const unsigned int ERROR_channel_invalid_order = 0x030b;
const unsigned int ERROR_channel_no_filetransfer_supported = 0x030c;
const unsigned int ERROR_channel_invalid_password = 0x030d;
const unsigned int ERROR_channel_invalid_security_hash = 0x030f; //note 0x030e is defined in public_rare_errors;
//server
const unsigned int ERROR_server_invalid_id = 0x0400;
const unsigned int ERROR_server_running = 0x0401;
const unsigned int ERROR_server_is_shutting_down = 0x0402;
const unsigned int ERROR_server_maxclients_reached = 0x0403;
const unsigned int ERROR_server_invalid_password = 0x0404;
const unsigned int ERROR_server_is_virtual = 0x0407;
const unsigned int ERROR_server_is_not_running = 0x0409;
const unsigned int ERROR_server_is_booting = 0x040a;
const unsigned int ERROR_server_status_invalid = 0x040b;
const unsigned int ERROR_server_version_outdated = 0x040d;
const unsigned int ERROR_server_duplicate_running = 0x040e;
//parameter
const unsigned int ERROR_parameter_quote = 0x0600;
const unsigned int ERROR_parameter_invalid_count = 0x0601;
const unsigned int ERROR_parameter_invalid = 0x0602;
const unsigned int ERROR_parameter_not_found = 0x0603;
const unsigned int ERROR_parameter_convert = 0x0604;
const unsigned int ERROR_parameter_invalid_size = 0x0605;
const unsigned int ERROR_parameter_missing = 0x0606;
const unsigned int ERROR_parameter_checksum = 0x0607;
//unsorted, need further investigation
const unsigned int ERROR_vs_critical = 0x0700;
const unsigned int ERROR_connection_lost = 0x0701;
const unsigned int ERROR_not_connected = 0x0702;
const unsigned int ERROR_no_cached_connection_info = 0x0703;
const unsigned int ERROR_currently_not_possible = 0x0704;
const unsigned int ERROR_failed_connection_initialisation = 0x0705;
const unsigned int ERROR_could_not_resolve_hostname = 0x0706;
const unsigned int ERROR_invalid_server_connection_handler_id = 0x0707;
const unsigned int ERROR_could_not_initialise_input_manager = 0x0708;
const unsigned int ERROR_clientlibrary_not_initialised = 0x0709;
const unsigned int ERROR_serverlibrary_not_initialised = 0x070a;
const unsigned int ERROR_whisper_too_many_targets = 0x070b;
const unsigned int ERROR_whisper_no_targets = 0x070c;
const unsigned int ERROR_connection_ip_protocol_missing = 0x070d;
//file transfer
const unsigned int ERROR_file_invalid_name = 0x0800;
const unsigned int ERROR_file_invalid_permissions = 0x0801;
const unsigned int ERROR_file_already_exists = 0x0802;
const unsigned int ERROR_file_not_found = 0x0803;
const unsigned int ERROR_file_io_error = 0x0804;
const unsigned int ERROR_file_invalid_transfer_id = 0x0805;
const unsigned int ERROR_file_invalid_path = 0x0806;
const unsigned int ERROR_file_no_files_available = 0x0807;
const unsigned int ERROR_file_overwrite_excludes_resume = 0x0808;
const unsigned int ERROR_file_invalid_size = 0x0809;
const unsigned int ERROR_file_already_in_use = 0x080a;
const unsigned int ERROR_file_could_not_open_connection = 0x080b;
const unsigned int ERROR_file_no_space_left_on_device = 0x080c;
const unsigned int ERROR_file_exceeds_file_system_maximum_size = 0x080d;
const unsigned int ERROR_file_transfer_connection_timeout = 0x080e;
const unsigned int ERROR_file_connection_lost = 0x080f;
const unsigned int ERROR_file_exceeds_supplied_size = 0x0810;
const unsigned int ERROR_file_transfer_complete = 0x0811;
const unsigned int ERROR_file_transfer_canceled = 0x0812;
const unsigned int ERROR_file_transfer_interrupted = 0x0813;
const unsigned int ERROR_file_transfer_server_quota_exceeded = 0x0814;
const unsigned int ERROR_file_transfer_client_quota_exceeded = 0x0815;
const unsigned int ERROR_file_transfer_reset = 0x0816;
const unsigned int ERROR_file_transfer_limit_reached = 0x0817;
//sound
const unsigned int ERROR_sound_preprocessor_disabled = 0x0900;
const unsigned int ERROR_sound_internal_preprocessor = 0x0901;
const unsigned int ERROR_sound_internal_encoder = 0x0902;
const unsigned int ERROR_sound_internal_playback = 0x0903;
const unsigned int ERROR_sound_no_capture_device_available = 0x0904;
const unsigned int ERROR_sound_no_playback_device_available = 0x0905;
const unsigned int ERROR_sound_could_not_open_capture_device = 0x0906;
const unsigned int ERROR_sound_could_not_open_playback_device = 0x0907;
const unsigned int ERROR_sound_handler_has_device = 0x0908;
const unsigned int ERROR_sound_invalid_capture_device = 0x0909;
const unsigned int ERROR_sound_invalid_playback_device = 0x090a;
const unsigned int ERROR_sound_invalid_wave = 0x090b;
const unsigned int ERROR_sound_unsupported_wave = 0x090c;
const unsigned int ERROR_sound_open_wave = 0x090d;
const unsigned int ERROR_sound_internal_capture = 0x090e;
const unsigned int ERROR_sound_device_in_use = 0x090f;
const unsigned int ERROR_sound_device_already_registerred = 0x0910;
const unsigned int ERROR_sound_unknown_device = 0x0911;
const unsigned int ERROR_sound_unsupported_frequency = 0x0912;
const unsigned int ERROR_sound_invalid_channel_count = 0x0913;
const unsigned int ERROR_sound_read_wave = 0x0914;
const unsigned int ERROR_sound_need_more_data = 0x0915; //for internal purposes only
const unsigned int ERROR_sound_device_busy = 0x0916; //for internal purposes only
const unsigned int ERROR_sound_no_data = 0x0917;
const unsigned int ERROR_sound_channel_mask_mismatch = 0x0918;
//permissions
const unsigned int ERROR_permissions_client_insufficient = 0x0a08;
const unsigned int ERROR_permissions = 0x0a0c;
//accounting
const unsigned int ERROR_accounting_virtualserver_limit_reached = 0x0b00;
const unsigned int ERROR_accounting_slot_limit_reached = 0x0b01;
const unsigned int ERROR_accounting_license_file_not_found = 0x0b02;
const unsigned int ERROR_accounting_license_date_not_ok = 0x0b03;
const unsigned int ERROR_accounting_unable_to_connect_to_server = 0x0b04;
const unsigned int ERROR_accounting_unknown_error = 0x0b05;
const unsigned int ERROR_accounting_server_error = 0x0b06;
const unsigned int ERROR_accounting_instance_limit_reached = 0x0b07;
const unsigned int ERROR_accounting_instance_check_error = 0x0b08;
const unsigned int ERROR_accounting_license_file_invalid = 0x0b09;
const unsigned int ERROR_accounting_running_elsewhere = 0x0b0a;
const unsigned int ERROR_accounting_instance_duplicated = 0x0b0b;
const unsigned int ERROR_accounting_already_started = 0x0b0c;
const unsigned int ERROR_accounting_not_started = 0x0b0d;
const unsigned int ERROR_accounting_to_many_starts = 0x0b0e;
//provisioning server
const unsigned int ERROR_provisioning_invalid_password = 0x1100;
const unsigned int ERROR_provisioning_invalid_request = 0x1101;
const unsigned int ERROR_provisioning_no_slots_available = 0x1102;
const unsigned int ERROR_provisioning_pool_missing = 0x1103;
const unsigned int ERROR_provisioning_pool_unknown = 0x1104;
const unsigned int ERROR_provisioning_unknown_ip_location = 0x1105;
const unsigned int ERROR_provisioning_internal_tries_exceeded = 0x1106;
const unsigned int ERROR_provisioning_too_many_slots_requested = 0x1107;
const unsigned int ERROR_provisioning_too_many_reserved = 0x1108;
const unsigned int ERROR_provisioning_could_not_connect = 0x1109;
const unsigned int ERROR_provisioning_auth_server_not_connected = 0x1110;
const unsigned int ERROR_provisioning_auth_data_too_large = 0x1111;
const unsigned int ERROR_provisioning_already_initialized = 0x1112;
const unsigned int ERROR_provisioning_not_initialized = 0x1113;
const unsigned int ERROR_provisioning_connecting = 0x1114;
const unsigned int ERROR_provisioning_already_connected = 0x1115;
const unsigned int ERROR_provisioning_not_connected = 0x1116;
const unsigned int ERROR_provisioning_io_error = 0x1117;
const unsigned int ERROR_provisioning_invalid_timeout = 0x1118;
const unsigned int ERROR_provisioning_ts3server_not_found = 0x1119;
const unsigned int ERROR_provisioning_no_permission = 0x111A;
#endif