Package globus.glmap
Class GLMapError
- java.lang.Object
-
- globus.glmap.GLMapError
-
public class GLMapError extends java.lang.ObjectGLMapErrorcontains information about error and it's origin.
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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.htmlbooleanisHTTPError()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_codesbooleanisSystemError()For available codes check https://www.gnu.org/software/libc/manual/html_node/Error-Codes.htmlbooleanisSystemError(int errorCode)For available codes check https://www.gnu.org/software/libc/manual/html_node/Error-Codes.htmlbooleanisValhallaError()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-L118
-
-
-
Field Detail
-
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
-
EILSEQ
public static final int EILSEQ
-
ECANCELED
public static final int ECANCELED
-
ENOMEM
public static final int ENOMEM
-
ENOSPC
public static final int ENOSPC
-
EROFS
public static final int EROFS
-
EPERM
public static final int EPERM
-
EEXIST
public static final int EEXIST
-
EACCES
public static final int EACCES
-
EBUSY
public static final int EBUSY
-
-
Method Detail
-
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()
-
isSystemError
public boolean isSystemError()
For available codes check https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html- Returns:
- true if error is from system domain
-
isSystemError
public boolean isSystemError(int errorCode)
For available codes check https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html- Parameters:
errorCode- to check- Returns:
- true if error contains system error with error 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
-
-