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 int Cancelled  
    static int Empty  
    static int FailedToOpenOutputFile  
    static int FailedToWrite  
    static int InvalidMapListData  
    static int InvalidResponse  
    static int InvalidTileData  
    java.lang.String message  
    static int NoMemory  
    static int Success  
  • Method Summary

    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 isGLMapError()
    Possible error codes listed in beginning of this header file
    boolean isGLMapError​(int errorCode)
    Possible error codes listed in beginning of this header file
    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 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 Details

  • 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