Mercurial > hg > orthanc
comparison Core/Enumerations.cpp @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | 357c4bb15701 |
children | 9ea3d082b064 |
comparison
equal
deleted
inserted
replaced
1581:357c4bb15701 | 1582:bd1889029cbb |
---|---|
111 | 111 |
112 case ErrorCode_FullStorage: | 112 case ErrorCode_FullStorage: |
113 return "The file storage is full"; | 113 return "The file storage is full"; |
114 | 114 |
115 case ErrorCode_CorruptedFile: | 115 case ErrorCode_CorruptedFile: |
116 return "Corrupted file (inconsistent MD5 hash)"; | 116 return "Corrupted file (e.g. inconsistent MD5 hash)"; |
117 | 117 |
118 case ErrorCode_InexistentTag: | 118 case ErrorCode_InexistentTag: |
119 return "Inexistent tag"; | 119 return "Inexistent tag"; |
120 | 120 |
121 case ErrorCode_ReadOnly: | 121 case ErrorCode_ReadOnly: |
130 case ErrorCode_SharedLibrary: | 130 case ErrorCode_SharedLibrary: |
131 return "Error while using a shared library (plugin)"; | 131 return "Error while using a shared library (plugin)"; |
132 | 132 |
133 case ErrorCode_UnknownPluginService: | 133 case ErrorCode_UnknownPluginService: |
134 return "Plugin invoking an unknown service"; | 134 return "Plugin invoking an unknown service"; |
135 | |
136 case ErrorCode_UnknownDicomTag: | |
137 return "Unknown DICOM tag"; | |
138 | |
139 case ErrorCode_SQLiteNotOpened: | |
140 return "SQLite: The database is not opened"; | |
141 | |
142 case ErrorCode_SQLiteAlreadyOpened: | |
143 return "SQLite: Connection is already open"; | |
144 | |
145 case ErrorCode_SQLiteCannotOpen: | |
146 return "SQLite: Unable to open the database"; | |
147 | |
148 case ErrorCode_SQLiteStatementAlreadyUsed: | |
149 return "SQLite: This cached statement is already being referred to"; | |
150 | |
151 case ErrorCode_SQLiteExecute: | |
152 return "SQLite: Cannot execute a command"; | |
153 | |
154 case ErrorCode_SQLiteRollbackWithoutTransaction: | |
155 return "SQLite: Rolling back a nonexistent transaction (have you called Begin()?)"; | |
156 | |
157 case ErrorCode_SQLiteCommitWithoutTransaction: | |
158 return "SQLite: Committing a nonexistent transaction"; | |
159 | |
160 case ErrorCode_SQLiteRegisterFunction: | |
161 return "SQLite: Unable to register a function"; | |
162 | |
163 case ErrorCode_SQLiteFlush: | |
164 return "SQLite: Unable to flush the database"; | |
165 | |
166 case ErrorCode_SQLiteCannotRun: | |
167 return "SQLite: Cannot run a cached statement"; | |
168 | |
169 case ErrorCode_SQLiteCannotStep: | |
170 return "SQLite: Cannot step over a cached statement"; | |
171 | |
172 case ErrorCode_SQLiteBindOutOfRange: | |
173 return "SQLite: Bing a value while out of range (serious error)"; | |
174 | |
175 case ErrorCode_SQLitePrepareStatement: | |
176 return "SQLite: Cannot prepare a cached statement"; | |
177 | |
178 case ErrorCode_SQLiteTransactionAlreadyStarted: | |
179 return "SQLite: Beginning the same transaction twice"; | |
180 | |
181 case ErrorCode_SQLiteTransactionCommit: | |
182 return "SQLite: Failure when committing the transaction"; | |
183 | |
184 case ErrorCode_SQLiteTransactionBegin: | |
185 return "SQLite: Cannot start a transaction"; | |
186 | |
187 case ErrorCode_DirectoryOverFile: | |
188 return "The directory to be created is already occupied by a regular file"; | |
189 | |
190 case ErrorCode_FileStorageCannotWrite: | |
191 return "Unable to create a subdirectory or a file in the file storage"; | |
192 | |
193 case ErrorCode_DirectoryExpected: | |
194 return "The specified path does not point to a directory"; | |
195 | |
196 case ErrorCode_HttpPortInUse: | |
197 return "The TCP port of the HTTP server is already in use"; | |
198 | |
199 case ErrorCode_DicomPortInUse: | |
200 return "The TCP port of the DICOM server is already in use"; | |
201 | |
202 case ErrorCode_BadHttpStatusInRest: | |
203 return "This HTTP status is not allowed in a REST API"; | |
204 | |
205 case ErrorCode_RegularFileExpected: | |
206 return "The specified path does not point to a regular file"; | |
207 | |
208 case ErrorCode_PathToExecutable: | |
209 return "Unable to get the path to the executable"; | |
210 | |
211 case ErrorCode_MakeDirectory: | |
212 return "Cannot create a directory"; | |
213 | |
214 case ErrorCode_BadApplicationEntityTitle: | |
215 return "An application entity title (AET) cannot be empty or be longer than 16 characters"; | |
216 | |
217 case ErrorCode_NoCFindHandler: | |
218 return "No request handler factory for DICOM C-FIND SCP"; | |
219 | |
220 case ErrorCode_NoCMoveHandler: | |
221 return "No request handler factory for DICOM C-MOVE SCP"; | |
222 | |
223 case ErrorCode_NoCStoreHandler: | |
224 return "No request handler factory for DICOM C-STORE SCP"; | |
225 | |
226 case ErrorCode_NoApplicationEntityFilter: | |
227 return "No application entity filter"; | |
228 | |
229 case ErrorCode_NoSopClassOrInstance: | |
230 return "DicomUserConnection: Unable to find the SOP class and instance"; | |
231 | |
232 case ErrorCode_NoPresentationContext: | |
233 return "DicomUserConnection: No acceptable presentation context for modality"; | |
234 | |
235 case ErrorCode_DicomFindUnavailable: | |
236 return "DicomUserConnection: The C-FIND command is not supported by the remote SCP"; | |
237 | |
238 case ErrorCode_DicomMoveUnavailable: | |
239 return "DicomUserConnection: The C-MOVE command is not supported by the remote SCP"; | |
240 | |
241 case ErrorCode_CannotStoreInstance: | |
242 return "Cannot store an instance"; | |
243 | |
244 case ErrorCode_CreateDicomNotString: | |
245 return "Only string values are supported when creating DICOM instances"; | |
246 | |
247 case ErrorCode_CreateDicomOverrideTag: | |
248 return "Trying to override a value inherited from a parent module"; | |
249 | |
250 case ErrorCode_CreateDicomUseContent: | |
251 return "Use \"Content\" to inject an image into a new DICOM instance"; | |
252 | |
253 case ErrorCode_CreateDicomNoPayload: | |
254 return "No payload is present for one instance in the series"; | |
255 | |
256 case ErrorCode_CreateDicomUseDataUriScheme: | |
257 return "The payload of the DICOM instance must be specified according to Data URI scheme"; | |
258 | |
259 case ErrorCode_CreateDicomBadParent: | |
260 return "Trying to attach a new DICOM instance to an inexistent resource"; | |
261 | |
262 case ErrorCode_CreateDicomParentIsInstance: | |
263 return "Trying to attach a new DICOM instance to an instance (must be a series, study or patient)"; | |
264 | |
265 case ErrorCode_CreateDicomParentEncoding: | |
266 return "Unable to get the encoding of the parent resource"; | |
267 | |
268 case ErrorCode_UnknownModality: | |
269 return "Unknown modality"; | |
270 | |
271 case ErrorCode_BadJobOrdering: | |
272 return "Bad ordering of filters in a job"; | |
135 | 273 |
136 default: | 274 default: |
137 return "Unknown error code"; | 275 return "Unknown error code"; |
138 } | 276 } |
139 } | 277 } |