Package globus.glmap

Class GLMapError

java.lang.Object
globus.glmap.GLMapError

public class GLMapError extends Object
GLMapError contains information about error and it's origin.
  • Field Details

    • message

      @Nullable public final String message
      Message of error
    • Success

      public static final int Success
      No error
      See Also:
    • Empty

      public static final int Empty
      Error information is not set
      See Also:
    • EILSEQ

      public static final int EILSEQ
      Illegal sequence
    • ECANCELED

      public static final int ECANCELED
      Cancelled
    • ENOMEM

      public static final int ENOMEM
      Not enough memory
    • ENOSPC

      public static final int ENOSPC
      Bot enough space
    • EROFS

      public static final int EROFS
      Read only file system
    • EPERM

      public static final int EPERM
      Permissions error
    • EEXIST

      public static final int EEXIST
      Already exists
    • EACCES

      public static final int EACCES
      Access error
    • EBUSY

      public static final int EBUSY
      Resource is busy
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns:
      error code
      See Also:
    • getErrorDomain

      public String getErrorDomain()
      Returns:
      name of error domain like in iOS version of framework
      See Also:
    • isSystemError

      public boolean isSystemError()
      For available codes check
      Returns:
      true if error is from system domain
    • isSystemError

      public boolean isSystemError(int errorCode)
      For available codes check
      Parameters:
      errorCode - to check
      Returns:
      true if error contains system error with error code
    • isHTTPError

      public boolean isHTTPError()
      For available codes check
      Returns:
      true if error contains HTTP error code
    • isHTTPError

      public boolean isHTTPError(int errorCode)
      For available codes check
      Parameters:
      errorCode - to check
      Returns:
      true if error contains HTTP error error with given code
    • isCURLError

      public boolean isCURLError()
      For available codes check
      Returns:
      true if error contains CURL error code
    • isCURLError

      public boolean isCURLError(int errorCode)
      For available codes check
      Parameters:
      errorCode - to check
      Returns:
      true if error contains CURL error code
    • isXZError

      public boolean isXZError()
      For available codes check
      Returns:
      true if error contains XZ error code
    • isXZError

      public boolean isXZError(int errorCode)
      For available codes check
      Parameters:
      errorCode - to check
      Returns:
      true if error contains XZ error code
    • isValhallaError

      public boolean isValhallaError()
      For available codes check
      Returns:
      true if error contains Valhalla error code
    • isValhallaError

      public boolean isValhallaError(int errorCode)
      For available codes check
      Parameters:
      errorCode - to check
      Returns:
      true if error contains Valhalla error code