Package globus.glmap
Class GLMapError
java.lang.Object
globus.glmap.GLMapError
public class GLMapError
extends java.lang.Object
GLMapError contains information about error and it's origin.-
Field Summary
Fields Modifier and Type Field Description static intCancelledstatic intEmptystatic intFailedToOpenOutputFilestatic intFailedToWritestatic intInvalidMapListDatastatic intInvalidResponsestatic intInvalidTileDatajava.lang.Stringmessagestatic intNoMemorystatic intSuccess -
Method Summary
Modifier and Type Method Description intgetErrorCode()java.lang.StringgetErrorDomain()booleanisCURLError()For available codes check https://curl.haxx.se/libcurl/c/libcurl-errors.htmlbooleanisCURLError(int errorCode)For available codes check https://curl.haxx.se/libcurl/c/libcurl-errors.htmlbooleanisGLMapError()Possible error codes listed in beginning of this header filebooleanisGLMapError(int errorCode)Possible error codes listed in beginning of this header filebooleanisHTTPError()For available codes check https://en.wikipedia.org/wiki/List_of_HTTP_status_codesbooleanisHTTPError(int errorCode)For available codes check https://en.wikipedia.org/wiki/List_of_HTTP_status_codesbooleanisValhallaError()For available codes check https://github.com/valhalla/valhalla-docs/blob/master/turn-by-turn/api-reference.md#internal-error-codes-and-conditionsbooleanisValhallaError(int errorCode)For available codes check https://github.com/valhalla/valhalla-docs/blob/master/turn-by-turn/api-reference.md#internal-error-codes-and-conditionsbooleanisXZError()For available codes check https://github.com/torvalds/linux/blob/master/include/linux/xz.h#L58-L118booleanisXZError(int errorCode)For available codes check https://github.com/torvalds/linux/blob/master/include/linux/xz.h#L58-L118Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
message
public java.lang.String message -
Success
public static final int Success- See Also:
- Constant Field Values
-
Empty
public static final int Empty- See Also:
- Constant Field Values
-
Cancelled
public static final int Cancelled- See Also:
- Constant Field Values
-
InvalidTileData
public static final int InvalidTileData- See Also:
- Constant Field Values
-
InvalidMapListData
public static final int InvalidMapListData- See Also:
- Constant Field Values
-
InvalidResponse
public static final int InvalidResponse- See Also:
- Constant Field Values
-
NoMemory
public static final int NoMemory- See Also:
- Constant Field Values
-
FailedToOpenOutputFile
public static final int FailedToOpenOutputFile- See Also:
- Constant Field Values
-
FailedToWrite
public static final int FailedToWrite- See Also:
- Constant Field Values
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Returns:
- error code
- See Also:
getErrorDomain()
-
getErrorDomain
public java.lang.String getErrorDomain()- Returns:
- name of error domain like in iOS version of framework
- See Also:
getErrorCode()
-
isGLMapError
public boolean isGLMapError()Possible error codes listed in beginning of this header file- Returns:
- true if error contains GLMap error code
-
isGLMapError
public boolean isGLMapError(int errorCode)Possible error codes listed in beginning of this header file- Parameters:
errorCode- to check- Returns:
- true if error contains GLMap error with given code
-
isHTTPError
public boolean isHTTPError()For available codes check https://en.wikipedia.org/wiki/List_of_HTTP_status_codes- Returns:
- true if error contains HTTP error code
-
isHTTPError
public boolean isHTTPError(int errorCode)For available codes check https://en.wikipedia.org/wiki/List_of_HTTP_status_codes- Parameters:
errorCode- to check- Returns:
- true if error contains HTTP error error with given code
-
isCURLError
public boolean isCURLError()For available codes check https://curl.haxx.se/libcurl/c/libcurl-errors.html- Returns:
- true if error contains CURL error code
-
isCURLError
public boolean isCURLError(int errorCode)For available codes check https://curl.haxx.se/libcurl/c/libcurl-errors.html- Parameters:
errorCode- to check- Returns:
- true if error contains CURL error code
-
isXZError
public boolean isXZError()For available codes check https://github.com/torvalds/linux/blob/master/include/linux/xz.h#L58-L118- Returns:
- true if error contains XZ error code
-
isXZError
public boolean isXZError(int errorCode)For available codes check https://github.com/torvalds/linux/blob/master/include/linux/xz.h#L58-L118- Parameters:
errorCode- to check- Returns:
- true if error contains XZ error code
-
isValhallaError
public boolean isValhallaError()For available codes check https://github.com/valhalla/valhalla-docs/blob/master/turn-by-turn/api-reference.md#internal-error-codes-and-conditions- Returns:
- true if error contains Valhalla error code
-
isValhallaError
public boolean isValhallaError(int errorCode)For available codes check https://github.com/valhalla/valhalla-docs/blob/master/turn-by-turn/api-reference.md#internal-error-codes-and-conditions- Parameters:
errorCode- to check- Returns:
- true if error contains Valhalla error code
-