Package globus.glmap

Class GLMapError


  • public class GLMapError
    extends java.lang.Object
    GLMapError contains information about error and it's origin.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()  
      java.lang.String getErrorDomain()  
      boolean isCURLError()
      For available codes check https://curl.haxx.se/libcurl/c/libcurl-errors.html
      boolean isCURLError​(int errorCode)
      For available codes check https://curl.haxx.se/libcurl/c/libcurl-errors.html
      boolean isHTTPError()
      For available codes check https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
      boolean isHTTPError​(int errorCode)
      For available codes check https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
      boolean isSystemError()
      For available codes check https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
      boolean isSystemError​(int errorCode)
      For available codes check https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
      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
      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
      boolean isXZError()
      For available codes check https://github.com/torvalds/linux/blob/master/include/linux/xz.h#L58-L118
      boolean isXZError​(int errorCode)
      For available codes check https://github.com/torvalds/linux/blob/master/include/linux/xz.h#L58-L118
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • message

        public java.lang.String message
      • 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