Package globus.glmap
Class GLMapError
java.lang.Object
globus.glmap.GLMapError
GLMapError contains information about error and it's origin.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccess errorstatic final intResource is busystatic final intCancelledstatic final intAlready existsstatic final intIllegal sequencestatic final intError information is not setstatic final intNot enough memorystatic final intBot enough spacestatic final intPermissions errorstatic final intRead only file systemfinal StringMessage of errorstatic final intNo error -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the error code associated with the current error.Retrieves the name of the error domain, similar to the iOS version of the framework.booleanFor available codes checkbooleanisCURLError(int errorCode) For available codes checkbooleanFor available codes checkbooleanisHTTPError(int errorCode) For available codes checkbooleanFor available codes checkbooleanisSystemError(int errorCode) For available codes checkbooleanFor available codes checkbooleanisValhallaError(int errorCode) For available codes checkbooleanFor available codes checkbooleanisXZError(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()Retrieves the error code associated with the current error.- Returns:
- The error code.
- See Also:
-
getErrorDomain
Retrieves the name of the error domain, similar to the iOS version of the framework.- Returns:
- The name of the error domain, such as
"HTTP","CURL","XZ","Valhalla", or"ERRNO"if no specific domain is detected. - 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
-