CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
Static Public Member Functions | Static Public Attributes | List of all members
com.cartotype.Error Class Reference

Static Public Member Functions

static native String string (int aErrorCode)
 

Static Public Attributes

static final int NONE = 0
 
static final int SUCCESS = 0
 
static final int GENERAL = 1
 
static final int NO_MEMORY = 2
 
static final int END_OF_DATA = 3
 
static final int TEXT_UNMODIFIABLE = 4
 
static final int TEXT_TRUNCATED = 5
 
static final int NOT_FOUND = 6
 
static final int UNIMPLEMENTED = 7
 
static final int INVALID_OUTLINE = 8
 
static final int IO = 9
 
static final int CORRUPT = 10
 
static final int UNKNOWN_DATA_FORMAT = 11
 
static final int NO_INVERSE = 12
 
static final int PROJECTION_OVERFLOW = 13
 
static final int CANCEL = 14
 
static final int INVALID_ARGUMENT = 15
 
static final int UNKNOWN_VERSION = 16
 
static final int OVERFLOW = 17
 
static final int PARALLEL_LINES = 19
 
static final int NO_PALETTE = 22
 
static final int DUPLICATE = 23
 
static final int NO_PROJECTION = 24
 
static final int PALETTE_FULL = 25
 
static final int INVALID_DASH_ARRAY = 26
 
static final int CENTRAL_PATH = 27
 
static final int NO_ROUTE = 28
 
static final int ZOOM_LIMIT_REACHED = 29
 
static final int ALREADY_PROJECTED = 30
 
static final int CONDITIONS_TOO_DEEPLY_NESTED = 31
 
static final int NULL_FONT = 32
 
static final int INTERNET_IO = 33
 
static final int DIVIDE_BY_ZERO = 34
 
static final int TRANSFORM_FAILED = 35
 
static final int PNG_READ = 36
 
static final int JPG_READ = 37
 
static final int NO_INTERSECTION = 38
 
static final int INTERRUPT = 39
 
static final int MAP_DATABASE_FORMAT_MISMATCH = 40
 
static final int ENCRYPTION_KEY_TOO_SHORT = 41
 
static final int NO_ENCRYPTION_KEY = 42
 
static final int EMERGENCY_MESSAGE = 43
 
static final int ALERT_MESSAGE = 44
 
static final int CRITICAL_MESSAGE = 45
 
static final int MESSAGE = 46
 
static final int WARNING_MESSAGE = 47
 
static final int NOTICE_MESSAGE = 48
 
static final int INFO_MESSAGE = 49
 
static final int DEBUG_MESSAGE = 50
 
static final int NOT_NAVIGATING = 51
 
static final int NO_FRAMEWORK = 52
 
static final int FRAMEWORK_ALREADY_EXISTS = 53
 
static final int UNTRANSLITERABLE = 54
 
static final int PNG_WRITE = 55
 
static final int READ_ONLY_MAP_DATABASE = 56
 
static final int PROJ4 = 57
 
static final int UNLICENSED = 58
 
static final int NO_ROADS_NEAR_START_OF_ROUTE = 59
 
static final int NO_ROADS_NEAR_END_OF_ROUTE = 60
 
static final int NO_ROUTE_CONNECTIVITY = 61
 
static final int XML_FEATURE_NOT_SUPPORTED = 62
 
static final int MAP_NOT_FOUND = 63
 
static final int FONT_NOT_FOUND = 64
 
static final int STYLE_SHEET_NOT_FOUND = 65
 
static final int FEATURE_INFO_IS_NOT_ROUTE = 66
 
static final int FEATURE_INFO_IS_ROUTE = 67
 
static final int NO_ROUTE_DATA = 68
 
static final int TOO_MANY_FONTS_IN_STYLE_SHEET = 69
 
static final int TOO_MANY_BOX_STYLES_IN_STYLE_SHEET = 70
 
static final int STANDARD_ERROR_CODE_COUNT = 71
 
static final int XML_ERROR_RANGE_START = 0x10000000
 
static final int XML_ERROR_RANGE_END = 0x2AFFFFFF
 
static final int SQLITE_ERROR_BASE = 0x30000000
 

Detailed Description

This class holds error codes.

Member Function Documentation

◆ string()

static native String com.cartotype.Error.string ( int  aErrorCode)
static

Returns a short description of an error, given its code.

Member Data Documentation

◆ ALERT_MESSAGE

final int com.cartotype.Error.ALERT_MESSAGE = 44
static

A code for standard alert messages.

◆ ALREADY_PROJECTED

final int com.cartotype.Error.ALREADY_PROJECTED = 30
static

There was an attempt to project a map object that had already been projected.

◆ CANCEL

final int com.cartotype.Error.CANCEL = 14
static

The code CANCEL is returned to cancel an asynchronous operation that uses callbacks. The callback or virtual function returns this code. The caller must terminate further processing on receipt of any error, but this one indicates that there has been no actual error.

◆ CENTRAL_PATH

final int com.cartotype.Error.CENTRAL_PATH = 27
static

The central-path system failed to create a usable path.

◆ CONDITIONS_TOO_DEEPLY_NESTED

final int com.cartotype.Error.CONDITIONS_TOO_DEEPLY_NESTED = 31
static

Conditions are too deeply nested in the style sheet.

◆ CORRUPT

final int com.cartotype.Error.CORRUPT = 10
static

CORRUPT is returned when illegal values are found when reading data from a file or other serialized form.

◆ CRITICAL_MESSAGE

final int com.cartotype.Error.CRITICAL_MESSAGE = 45
static

A code for standard critical messages.

◆ DEBUG_MESSAGE

final int com.cartotype.Error.DEBUG_MESSAGE = 50
static

A code for standard debug messages.

◆ DIVIDE_BY_ZERO

final int com.cartotype.Error.DIVIDE_BY_ZERO = 34
static

Division by zero in an interpreted expression.

◆ DUPLICATE

final int com.cartotype.Error.DUPLICATE = 23
static

An attempt was made to insert a duplicate object into a collection class that does not allow duplicates.

◆ EMERGENCY_MESSAGE

final int com.cartotype.Error.EMERGENCY_MESSAGE = 43
static

A code for standard emergency messages.

◆ ENCRYPTION_KEY_TOO_SHORT

final int com.cartotype.Error.ENCRYPTION_KEY_TOO_SHORT = 41
static

A key supplied for encryption was too short.

◆ END_OF_DATA

final int com.cartotype.Error.END_OF_DATA = 3
static

END_OF_DATA is returned by iterators and streams when no more data is available. It may be treated as an error or not depending on the circumstances.

◆ FEATURE_INFO_IS_NOT_ROUTE

final int com.cartotype.Error.FEATURE_INFO_IS_NOT_ROUTE = 66
static

An attempt was made to set a route attribute on a feature info that is not a route.

◆ FEATURE_INFO_IS_ROUTE

final int com.cartotype.Error.FEATURE_INFO_IS_ROUTE = 67
static

An attempt was made to set a non-route attribute on a feature info that is a route.

◆ FONT_NOT_FOUND

final int com.cartotype.Error.FONT_NOT_FOUND = 64
static

A font file was not found.

◆ FRAMEWORK_ALREADY_EXISTS

final int com.cartotype.Error.FRAMEWORK_ALREADY_EXISTS = 53
static

The global framework object already exists.

◆ GENERAL

final int com.cartotype.Error.GENERAL = 1
static

GENERAL is used where an error has occurred but no other CartoType error is applicable. For example, this error code can be used when FreeType returns an error code for illegal TrueType hinting instructions.

◆ INFO_MESSAGE

final int com.cartotype.Error.INFO_MESSAGE = 49
static

A code for standard information messages.

◆ INTERNET_IO

final int com.cartotype.Error.INTERNET_IO = 33
static

An attempt to read data from the internet failed.

◆ INTERRUPT

final int com.cartotype.Error.INTERRUPT = 39
static

An operation was interrupted, for example by another thread writing to a shared flag.

◆ INVALID_ARGUMENT

final int com.cartotype.Error.INVALID_ARGUMENT = 15
static

This error is returned when an invalid argument has been given to a function.

◆ INVALID_DASH_ARRAY

final int com.cartotype.Error.INVALID_DASH_ARRAY = 26
static

The dash array for drawing strokes is invalid.

◆ INVALID_OUTLINE

final int com.cartotype.Error.INVALID_OUTLINE = 8
static

If the graphics system detects an invalid outline, such as one that starts with a cubic control point, it returns INVALID_OUTLINE.

◆ IO

final int com.cartotype.Error.IO = 9
static

The code IO should be used for unexpected read or write errors on files or other data streams. This is for where you attempt to read data that should be there, but the OS says it's unavailable (e.g., someone has taken the CD out of the drive or the network is down).

◆ JPG_READ

final int com.cartotype.Error.JPG_READ = 37
static

Reading a bitmap from JPG format failed.

◆ MAP_DATABASE_FORMAT_MISMATCH

final int com.cartotype.Error.MAP_DATABASE_FORMAT_MISMATCH = 40
static

There was an attempt to use map databases of incompatible formats (TMapGrid values containing point format, datum and axis orientations) to draw a map or find objects in a map.

◆ MAP_NOT_FOUND

final int com.cartotype.Error.MAP_NOT_FOUND = 63
static

A map file was not found.

◆ MESSAGE

final int com.cartotype.Error.MESSAGE = 46
static

A code for standard error messages.

◆ NO_ENCRYPTION_KEY

final int com.cartotype.Error.NO_ENCRYPTION_KEY = 42
static

No encryption key has been set.

◆ NO_FRAMEWORK

final int com.cartotype.Error.NO_FRAMEWORK = 52
static

The global framework object does not exist.

◆ NO_INTERSECTION

final int com.cartotype.Error.NO_INTERSECTION = 38
static

An object did not intersect a specified region.

◆ NO_INVERSE

final int com.cartotype.Error.NO_INVERSE = 12
static

This error is returned by transformation inversion if the transformation has no inverse.

◆ NO_MEMORY

final int com.cartotype.Error.NO_MEMORY = 2
static

NO_MEMORY is returned when an attempted memory allocation fails.

◆ NO_PALETTE

final int com.cartotype.Error.NO_PALETTE = 22
static

An attempt was made to draw a bitmap needing a color palette but no palette was provided.

◆ NO_PROJECTION

final int com.cartotype.Error.NO_PROJECTION = 24
static

The projection for converting latitude and longitude to map coordinates is unknown or unavailable.

◆ NO_ROADS_NEAR_END_OF_ROUTE

final int com.cartotype.Error.NO_ROADS_NEAR_END_OF_ROUTE = 60
static

No route could be created because there were no roads near the end point of a route section.

◆ NO_ROADS_NEAR_START_OF_ROUTE

final int com.cartotype.Error.NO_ROADS_NEAR_START_OF_ROUTE = 59
static

No route could be created because there were no roads near the start point of a route section.

◆ NO_ROUTE

final int com.cartotype.Error.NO_ROUTE = 28
static

A route was needed by the navigation system but no route was available.

◆ NO_ROUTE_CONNECTIVITY

final int com.cartotype.Error.NO_ROUTE_CONNECTIVITY = 61
static

No route could be created because the start and end point were not connected.

◆ NO_ROUTE_DATA

final int com.cartotype.Error.NO_ROUTE_DATA = 68
static

No route data is available.

◆ NONE

final int com.cartotype.Error.NONE = 0
static

No error: a successful result.

◆ NOT_FOUND

final int com.cartotype.Error.NOT_FOUND = 6
static

NOT_FOUND is returned whenever a resource like a file is not found, or a search fails. It may be treated as an error or not depending on the circumstances.

◆ NOT_NAVIGATING

final int com.cartotype.Error.NOT_NAVIGATING = 51
static

A function has been called which is available only when navigating.

◆ NOTICE_MESSAGE

final int com.cartotype.Error.NOTICE_MESSAGE = 48
static

A code for standard notice messages.

◆ NULL_FONT

final int com.cartotype.Error.NULL_FONT = 32
static

There was an attempt to use a null font for drawing text.

◆ OVERFLOW

final int com.cartotype.Error.OVERFLOW = 17
static

This error is returned by the base library when reading data or calculations result in overflow.

◆ PALETTE_FULL

final int com.cartotype.Error.PALETTE_FULL = 25
static

A palette is full and no new entries can be added.

◆ PARALLEL_LINES

final int com.cartotype.Error.PARALLEL_LINES = 19
static

The error code returned by line intersection algorithms when the lines are parallel.

◆ PNG_READ

final int com.cartotype.Error.PNG_READ = 36
static

Reading a bitmap from PNG format failed.

◆ PNG_WRITE

final int com.cartotype.Error.PNG_WRITE = 55
static

Writing a bitmap to PNG format failed.

◆ PROJ4

final int com.cartotype.Error.PROJ4 = 57
static

There was an error in the PROJ.4 projection library error other than a projection overflow.

◆ PROJECTION_OVERFLOW

final int com.cartotype.Error.PROJECTION_OVERFLOW = 13
static

This error is returned by the projection system if the projection causes overflow.

◆ READ_ONLY_MAP_DATABASE

final int com.cartotype.Error.READ_ONLY_MAP_DATABASE = 56
static

There was an attempt to write to a read-only map database.

◆ SQLITE_ERROR_BASE

final int com.cartotype.Error.SQLITE_ERROR_BASE = 0x30000000
static

The base of error codes for returning SQLite errors. The SQLite error code is placed in the lower two bytes.

◆ STANDARD_ERROR_CODE_COUNT

final int com.cartotype.Error.STANDARD_ERROR_CODE_COUNT = 71
static

The number of standard error codes.

◆ STYLE_SHEET_NOT_FOUND

final int com.cartotype.Error.STYLE_SHEET_NOT_FOUND = 65
static

A style sheet was not found.

◆ SUCCESS

final int com.cartotype.Error.SUCCESS = 0
static

No error: a successful result.

◆ TEXT_TRUNCATED

final int com.cartotype.Error.TEXT_TRUNCATED = 5
static

TEXT_TRUNCATED is returned when text inserted into a string derived from MString is too long for a fixed-size buffer.

◆ TEXT_UNMODIFIABLE

final int com.cartotype.Error.TEXT_UNMODIFIABLE = 4
static

TEXT_UNMODIFIABLE is returned when an attempt is made to modify an unmodifiable string represented by a class derived from MString.

◆ TOO_MANY_BOX_STYLES_IN_STYLE_SHEET

final int com.cartotype.Error.TOO_MANY_BOX_STYLES_IN_STYLE_SHEET = 70
static

Too many box styles are used in a style sheet.

◆ TOO_MANY_FONTS_IN_STYLE_SHEET

final int com.cartotype.Error.TOO_MANY_FONTS_IN_STYLE_SHEET = 69
static

Too many fonts are used in a style sheet.

◆ TRANSFORM_FAILED

final int com.cartotype.Error.TRANSFORM_FAILED = 35
static

A transform failed because an argument or result was out of range.

◆ UNIMPLEMENTED

final int com.cartotype.Error.UNIMPLEMENTED = 7
static

The code UNIMPLEMENTED is used for functions that have not yet been implemented, or for circumstances or options within functions that remain unimplemented because they are deemed to be either rarely or never useful.

◆ UNKNOWN_DATA_FORMAT

final int com.cartotype.Error.UNKNOWN_DATA_FORMAT = 11
static

This error is returned by database accessors, typeface accessors, etc., to indicate that this data format is unknown to a particular accessor. It is not really an error but tells the caller to try the next accessor in the list.

◆ UNKNOWN_VERSION

final int com.cartotype.Error.UNKNOWN_VERSION = 16
static

This error is returned by a data reader when it can not deal with the data version.

◆ UNLICENSED

final int com.cartotype.Error.UNLICENSED = 58
static

A function was called from the unlicensed version of CartoType that is available only in the licensed version.

◆ UNTRANSLITERABLE

final int com.cartotype.Error.UNTRANSLITERABLE = 54
static

A string was not transliterable.

◆ WARNING_MESSAGE

final int com.cartotype.Error.WARNING_MESSAGE = 47
static

A code for standard warning messages.

◆ XML_ERROR_RANGE_END

final int com.cartotype.Error.XML_ERROR_RANGE_END = 0x2AFFFFFF
static

The end of the range of errors in XML parsing or in the style sheet format.

◆ XML_ERROR_RANGE_START

final int com.cartotype.Error.XML_ERROR_RANGE_START = 0x10000000
static

The start of the range of errors in XML parsing or in the style sheet format, such as a syntactically incorrect dimension or color. The top byte is 0x10 for style sheet errors, or in the range 0x11 to 0x2A for Expat XML parser error codes.

The low three bytes give the error location: one byte for the column number (clamped to 0...255) two bytes for the line number (clamped to 0...65535).

◆ XML_FEATURE_NOT_SUPPORTED

final int com.cartotype.Error.XML_FEATURE_NOT_SUPPORTED = 62
static

An unsupported feature was requested from the XML parser.

◆ ZOOM_LIMIT_REACHED

final int com.cartotype.Error.ZOOM_LIMIT_REACHED = 29
static

There was an attempt to zoom beyond the legal zoom limits for a map.


The documentation for this class was generated from the following file: