CartoType .NET API 8.8-7-gb35e4dc71
for development in C#, Visual Basic and other .NET languages
CartoTypeResult.h
1/*
2CartoTypeResult.h
3Copyright (C) CartoType Ltd 2011-2022.
4See www.cartotype.com for more information.
5*/
6
7#pragma once
8
10namespace CartoType
11{
12
14public enum class Result
15 {
17 Success = 0,
18
20 ErrorNone = 0,
21
27 ErrorGeneral = 1,
28
30 ErrorNoMemory = 2,
31
38
45
52
59 ErrorNotFound = 6,
60
68
75
83 ErrorIo = 9,
84
89 ErrorCorrupt = 10,
90
98
103 ErrorNoInverse = 12,
104
110
118 ErrorCancel = 14,
119
124
129
134 ErrorOverflow = 17,
135
136 // ABOLISHED: ErrorOverlap = 18,
137
142
143 // ABOLISHED: ErrorPathLengthExceeded = 20,
144
145 // ABOLISHED: ErrorMaxTurnExceeded = 21,
146
151 ErrorNoPalette = 22,
152
157 ErrorDuplicate = 23,
158
164
168 ErrorPaletteFull = 25,
169
174
178 ErrorCentralPath = 27,
179
184 ErrorNoRoute = 28,
185
190
195
200
204 ErrorNullFont = 32,
205
209 ErrorInternetIo = 33,
210
215
220
224 ErrorPngRead = 36,
225
229 ErrorJpgRead = 37,
230
235
239 ErrorInterrupt = 39,
240
246
249
252
255
258
261
264
267
270
272 ErrorInfoMessage = 49,
273
276
279
281 ErrorNoFramework = 52,
282
285
288
290 ErrorPngWrite = 55,
291
294
296 ErrorProj4 = 57,
297
299 ErrorUnlicensed = 58,
300
303
306
309
312
314 ErrorMapNotFound = 63,
315
318
321
324
327
329 ErrorNoRouteData = 68,
330
333
336
339
346 ErrorXmlRangeStart = 0x10000000,
347
349 ErrorXmlRangeEnd = 0x2AFFFFFF,
350
355 ErrorSQLite = 0x30000000
356 };
357
359void ThrowError(unsigned int aError);
360
361}
Definition: CartoTypeWrapper.h:41
Result
Result codes returned by CartoType API functions.
Definition: CartoTypeResult.h:15
@ ErrorFeatureInfoIsNotRoute
An attempt was made to set a route attribute on a feature info that is not a route.
@ ErrorNoFramework
The global framework object does not exist.
@ ErrorTooManyBoxStylesInStyleSheet
Too many box styles are used in a style sheet.
@ ErrorNoEncryptionKey
No encryption key has been set.
@ ErrorNotFound
ErrorNotFound is returned whenever a resource like a file is not found, or a search fails....
@ ErrorGeneral
An error has occurred but no other CartoType error is applicable. For example, this error code can be...
@ ErrorNoMemory
ErrorNoMemory is returned when an attempted memory allocation fails.
@ ErrorPngWrite
Writing a bitmap to PNG format failed.
@ ErrorInternetIo
An attempt to read data from the internet failed.
@ ErrorInvalidDashArray
The dash array for drawing strokes is invalid.
@ ErrorDebugMessage
A code for standard debug messages.
@ ErrorJpgRead
Reading a bitmap from JPG format failed.
@ ErrorOverflow
This error is returned by the base library when reading data or calculations result in overflow.
@ ErrorXmlRangeStart
The start of the range of errors in XML parsing or in the style sheet format, such as a syntactically...
@ ErrorPngRead
Reading a bitmap from PNG format failed.
@ ErrorMapNotFound
A map file was not found.
@ ErrorEmergencyMessage
A code for standard emergency messages.
@ ErrorProjectionOverflow
This error is returned by the projection system if the projection causes overflow.
@ ErrorNoProjection
The projection for converting latitude and longitude to map coordinates is unknown or unavailable.
@ ErrorFeatureInfoIsRoute
An attempt was made to set a non-route attribute on a feature info that is a route.
@ ErrorNoInverse
This error is returned by transformation inversion if the transformation has no inverse.
@ Success
No error; a successful result.
@ ErrorStyleSheetNotFound
A style sheet was not found.
@ ErrorPaletteFull
A palette is full and no new entries can be added.
@ ErrorNoRouteData
No route data is available.
@ ErrorNoRoadsNearEndOfRoute
No route could be created because there were no roads near the end point of a route section.
@ ErrorSQLite
The base of error codes for returning SQLite errors. The SQLite error code is placed in the lower two...
@ ErrorNone
No error; a successful result.
@ ErrorMapDataBaseFormatMismatch
There was an attempt to use map databases of incompatible formats together.
@ ErrorZoomLimitReached
There was an attempt to zoom beyond the legal zoom limits for a map.
@ ErrorNoRoute
A route was needed by the navigation system but no route was available.
@ ErrorParallelLines
The error code returned by line intersection algorithms when the lines are parallel.
@ ErrorNoIntersection
An object did not intersect a specified region.
@ ErrorConditionsTooDeeplyNested
Conditions are too deeply nested in the style sheet.
@ ErrorNoRoadsNearStartOfRoute
No route could be created because there were no roads near the start point of a route section.
@ ErrorUnknownDataFormat
This error is returned by database accessors, typeface accessors, etc., to indicate that this data fo...
@ ErrorUnimplemented
The code ErrorUnimplemented is used for functions that have not yet been implemented,...
@ ErrorTextTruncated
ErrorTextTruncated is returned when text inserted into a string derived from MString is too long for ...
@ ErrorTextUnmodifiable
ErrorTextUnmodifiable is returned when an attempt is made to modify an unmodifiable string represente...
@ ErrorIo
The code ErrorIo is used for unexpected read or write errors on files or other data streams....
@ ErrorEncryptionKeyTooShort
A key supplied for encryption was too short.
@ ErrorUntransliterable
A string was not transliterable.
@ ErrorCancel
The code ErrorCancel is returned to cancel an asynchronous operation that uses callbacks....
@ ErrorInfoMessage
A code for standard information messages.
@ ErrorFontNotFound
A font file was not found.
@ ErrorTransformFailed
A transform failed because an argument or result was out of range.
@ ErrorNullFont
There was an attempt to use a null font for drawing text.
@ ErrorXmlFeatureNotSupported
An unsupported feature was requested from the XML parser.
@ ErrorNotNavigating
A function has been called which is available only when navigating.
@ ErrorUnlicensed
A function was called from the unlicensed version of CartoType that is available only in the licensed...
@ ErrorDuplicate
An attempt was made to insert a duplicate object into a collection class that does not allow duplicat...
@ ErrorWarningMessage
A code for standard warning messages.
@ ErrorCorrupt
ErrorCorrupt is returned when illegal values are found when reading data from a file or other seriali...
@ ErrorNoticeMessage
A code for standard notice messages.
@ ErrorProj4
There was an error in the PROJ.4 projection library error other than a projection overflow.
@ ErrorDivideByZero
Division by zero in an interpreted expression.
@ ErrorEndOfData
ErrorEndOfData is returned by iterators and streams when no more data is available....
@ ErrorInvalidOutline
If the graphics system detects an invalid outline, such as one that starts with a cubic control point...
@ ErrorNoPalette
An attempt was made to draw a bitmap needing a color palette but no palette was provided.
@ ErrorInterrupt
An operation was interrupted, for example by another thread writing to a shared flag.
@ ErrorAlertMessage
A code for standard alert messages.
@ ErrorNoRouteConnectivity
No route could be created because the start and end point were not connected.
@ ErrorXmlRangeEnd
The end of the range of errors in XML parsing or in the style sheet format.
@ ErrorReadOnlyMapDataBase
There was an attempt to write to a read-only map database.
@ ErrorAlreadyProjected
There was an attempt to project a map object that had already been projected.
@ ErrorCriticalMessage
A code for standard critical messages.
@ ErrorTooManyFontsInStyleSheet
Too many fonts are used in a style sheet.
@ ErrorInvalidArgument
This error is returned when an invalid argument has been given to a function.
@ StandardErrorCodeCount
The number of standard error codes.
@ ErrorUnknownVersion
This error is returned by a data reader when it can not deal with the data version.
@ ErrorCentralPath
The central-path system failed to create a usable path.
@ ErrorFrameworkAlreadyExists
The global framework object already exists.
@ ErrorErrorMessage
A code for standard error messages.
void ThrowError(unsigned int aError)