Package globus.glmap
Class GLMapError
java.lang.Object
globus.glmap.GLMapError
GLMapError
contains information about error and it's origin.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Access errorstatic final int
Resource is busystatic final int
Cancelledstatic final int
Already existsstatic final int
Illegal sequencestatic final int
Error information is not setstatic final int
Not enough memorystatic final int
Bot enough spacestatic final int
Permissions errorstatic final int
Read only file systemfinal String
Message of errorstatic final int
No error -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
For available codes checkboolean
isCURLError
(int errorCode) For available codes checkboolean
For available codes checkboolean
isHTTPError
(int errorCode) For available codes checkboolean
For available codes checkboolean
isSystemError
(int errorCode) For available codes checkboolean
For available codes checkboolean
isValhallaError
(int errorCode) For available codes checkboolean
For available codes checkboolean
isXZError
(int errorCode) For available codes check
-
Field Details
-
message
Message of error -
Success
public static final int SuccessNo error- See Also:
-
Empty
public static final int EmptyError information is not set- See Also:
-
EILSEQ
public static final int EILSEQIllegal sequence -
ECANCELED
public static final int ECANCELEDCancelled -
ENOMEM
public static final int ENOMEMNot enough memory -
ENOSPC
public static final int ENOSPCBot enough space -
EROFS
public static final int EROFSRead only file system -
EPERM
public static final int EPERMPermissions error -
EEXIST
public static final int EEXISTAlready exists -
EACCES
public static final int EACCESAccess error -
EBUSY
public static final int EBUSYResource is busy
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Returns:
- error code
- See Also:
-
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
-