-
Notifications
You must be signed in to change notification settings - Fork 5
/
exceptions.go
84 lines (83 loc) · 2.32 KB
/
exceptions.go
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
package simconnect
func getTextException(i uint32) string {
switch i {
case 0:
return "SIMCONNECT_EXCEPTION_NONE"
case 1:
return "SIMCONNECT_EXCEPTION_ERROR"
case 2:
return "SIMCONNECT_EXCEPTION_SIZE_MISMATCH"
case 3:
return "SIMCONNECT_EXCEPTION_UNRECOGNIZED_ID"
case 4:
return "SIMCONNECT_EXCEPTION_UNOPENED"
case 5:
return "SIMCONNECT_EXCEPTION_VERSION_MISMATCH"
case 6:
return "SIMCONNECT_EXCEPTION_TOO_MANY_GROUPS"
case 7:
return "SIMCONNECT_EXCEPTION_NAME_UNRECOGNIZED"
case 8:
return "SIMCONNECT_EXCEPTION_TOO_MANY_EVENT_NAMES"
case 9:
return "SIMCONNECT_EXCEPTION_EVENT_ID_DUPLICATE"
case 10:
return "SIMCONNECT_EXCEPTION_TOO_MANY_MAPS"
case 11:
return "SIMCONNECT_EXCEPTION_TOO_MANY_OBJECTS"
case 12:
return "SIMCONNECT_EXCEPTION_TOO_MANY_REQUESTS"
case 13:
return "SIMCONNECT_EXCEPTION_WEATHER_INVALID_PORT"
case 14:
return "SIMCONNECT_EXCEPTION_WEATHER_INVALID_METAR"
case 15:
return "SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_GET_OBSERVATION"
case 16:
return "SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_CREATE_STATION"
case 17:
return "SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_REMOVE_STATION"
case 18:
return "SIMCONNECT_EXCEPTION_INVALID_DATA_TYPE"
case 19:
return "SIMCONNECT_EXCEPTION_INVALID_DATA_SIZE"
case 20:
return "SIMCONNECT_EXCEPTION_DATA_ERROR"
case 21:
return "SIMCONNECT_EXCEPTION_INVALID_ARRAY"
case 22:
return "SIMCONNECT_EXCEPTION_CREATE_OBJECT_FAILED"
case 23:
return "SIMCONNECT_EXCEPTION_LOAD_FLIGHTPLAN_FAILED"
case 24:
return "SIMCONNECT_EXCEPTION_OPERATION_INVALID_FOR_OJBECT_TYPE"
case 25:
return "SIMCONNECT_EXCEPTION_ILLEGAL_OPERATION"
case 26:
return "SIMCONNECT_EXCEPTION_ALREADY_SUBSCRIBED"
case 27:
return "SIMCONNECT_EXCEPTION_INVALID_ENUM"
case 28:
return "SIMCONNECT_EXCEPTION_DEFINITION_ERROR"
case 29:
return "SIMCONNECT_EXCEPTION_DUPLICATE_ID"
case 30:
return "SIMCONNECT_EXCEPTION_DATUM_ID"
case 31:
return "SIMCONNECT_EXCEPTION_OUT_OF_BOUNDS"
case 32:
return "SIMCONNECT_EXCEPTION_ALREADY_CREATED"
case 33:
return "SIMCONNECT_EXCEPTION_OBJECT_OUTSIDE_REALITY_BUBBLE"
case 34:
return "SIMCONNECT_EXCEPTION_OBJECT_CONTAINER"
case 35:
return "SIMCONNECT_EXCEPTION_OBJECT_AI"
case 36:
return "SIMCONNECT_EXCEPTION_OBJECT_ATC"
case 37:
return "SIMCONNECT_EXCEPTION_OBJECT_SCHEDULE"
default:
return "Unknow exception"
}
}