-
Notifications
You must be signed in to change notification settings - Fork 110
/
SDLErrorConstants.h
194 lines (179 loc) 路 5.72 KB
/
SDLErrorConstants.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
189
190
191
192
193
194
//
// SDLErrorConstants.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 8/8/16.
// Copyright 漏 2016 smartdevicelink. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* Errors associated with the SDLManager class.
*/
typedef NS_ENUM(NSInteger, SDLEncryptionLifecycleManagerError) {
/**
* Some action was attempted that requires a connection to the remote head unit.
*/
SDLEncryptionLifecycleManagerErrorNotConnected = -1,
/**
* Received ACK with encryption bit set to false from the remote head unit
*/
SDLEncryptionLifecycleManagerErrorEncryptionOff = -2,
/**
* Received NAK from the remote head unit.
*/
SDLEncryptionLifecycleManagerErrorNAK = -3
};
/**
* Errors associated with the SDLManager class.
*/
typedef NS_ENUM(NSInteger, SDLManagerError) {
/**
* An RPC request failed to send.
*/
SDLManagerErrorRPCRequestFailed = -1,
/**
* Some action was attempted that requires a connection to the remote head unit.
*/
SDLManagerErrorNotConnected = -2,
/**
* Some action was attempted before the ready state was reached.
*/
SDLManagerErrorNotReady = -3,
/**
* The remote system encountered an unknown error.
*/
SDLManagerErrorUnknownRemoteError = -4,
/**
* One or more of the sub-managers failed to start.
*/
SDLManagerErrorManagersFailedToStart = -5,
/**
* Registering with the remote system failed.
*/
SDLManagerErrorRegistrationFailed = -6,
/**
* Registering with the remote system was successful, but had a warning.
*/
SDLManagerErrorRegistrationSuccessWithWarning = -7,
/**
* Request operations were cancelled before they could be sent
*/
SDLManagerErrorCancelled = -8
};
/**
* Errors associated with the SDLFileManager class.
*/
typedef NS_ENUM(NSInteger, SDLFileManagerError) {
/**
* A file attempted to send, but a file with that name already exists on the remote head unit, and the file was not configured to overwrite.
*/
SDLFileManagerErrorCannotOverwrite = -1,
/**
* A file was attempted to be accessed but it does not exist.
*/
SDLFileManagerErrorNoKnownFile = -2,
/**
* The file manager attempted to start but encountered an error.
*/
SDLFileManagerErrorUnableToStart = -3,
/**
* The file manager was unable to send this file.
*/
SDLFileManagerErrorUnableToUpload = -4,
/**
* The file manager could not find the local file.
*/
SDLFileManagerErrorFileDoesNotExist = -5,
/**
* The file upload was canceled.
*/
SDLFileManagerUploadCanceled = -6,
/**
* One or more of multiple files being uploaded or deleted failed.
*/
SDLFileManagerMultipleFileUploadTasksFailed = -7,
/**
* One or more of multiple files being uploaded or deleted failed.
*/
SDLFileManagerMultipleFileDeleteTasksFailed = -8,
/**
* The file data is nil or empty.
*/
SDLFileManagerErrorFileDataMissing = -9,
/**
* The file is a static icon, which cannot be uploaded
*/
SDLFileManagerErrorStaticIcon = -10,
};
/**
Errors associated with the ScreenManager class
*/
typedef NS_ENUM(NSInteger, SDLTextAndGraphicManagerError) {
/// A pending update was superseded by a newer requested update. The old update will not be sent
SDLTextAndGraphicManagerErrorPendingUpdateSuperseded = -1
};
/**
Errors associated with the ScreenManager class
*/
typedef NS_ENUM(NSInteger, SDLSoftButtonManagerError) {
/// A pending update was superseded by a newer requested update. The old update will not be sent
SDLSoftButtonManagerErrorPendingUpdateSuperseded = -1
};
/**
Errors associated with the ScreenManager class
*/
typedef NS_ENUM(NSInteger, SDLMenuManagerError) {
/// Sending menu-related RPCs returned an error from the remote system
SDLMenuManagerErrorRPCsFailed = -1
};
/// Errors associated with Choice Set class
typedef NS_ENUM(NSInteger, SDLChoiceSetManagerError) {
/// The choice set has been deleted before it was presented
SDLChoiceSetManagerErrorPendingPresentationDeleted = -1,
/// The choice set failed to delete
SDLChoiceSetManagerErrorDeletionFailed = -2,
/// The upload failed
SDLChoiceSetManagerErrorUploadFailed = -3,
/// The menu items failed to be created
SDLChoiceSetManagerErrorFailedToCreateMenuItems = -4,
/// Invalid state
SDLChoiceSetManagerErrorInvalidState = -5
};
typedef NS_ENUM(NSInteger, SDLSystemCapabilityManagerError) {
SDLSystemCapabilityManagerErrorModuleDoesNotSupportSystemCapabilities = -1,
SDLSystemCapabilityManagerErrorHMINone = -2,
SDLSystemCapabilityManagerErrorCannotUpdateTypeDisplays = -3
};
/**
* Errors associated with transport.
*/
typedef NS_ENUM(NSInteger, SDLTransportError) {
/**
* Connection cannot be established due to a reason not listed here.
*/
SDLTransportErrorUnknown = -1,
/**
* TCP connection is refused.
* Probably specified port number is invalid, or SDL Core is not running on the head unit.
*/
SDLTransportErrorConnectionRefused = -2,
/**
* TCP connection cannot be established within given time.
* Probably because of wrong IP address, or the connection may be blocked by a firewall.
*/
SDLTransportErrorConnectionTimedOut = -3,
/**
* TCP connection cannot be established since network is down.
* Probably the phone is not connected to the correct network.
*/
SDLTransportErrorNetworkDown = -4,
};
/**
* Errors associated with store.
*/
typedef NS_ENUM(NSInteger, SDLRPCStoreError) {
/**
* In dictionary stored value with unexpected type
*/
SDLRPCStoreErrorGetInvalidObject = -1,
};