Class GollumException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class GollumException extends Exception
Internal Exception of GollumParse If a error occurs while a task in background, this type of exception throw and send to Callback. Exception inherites from java.lang.Exception.
-
-
Field Summary
Fields Modifier and Type Field Description public GollumErrorCode
code
-
Constructor Summary
Constructors Constructor Description GollumException(GollumErrorCode code)
GollumException(GollumErrorCode code, String msg)
GollumException(GollumErrorCode code, String msg, int rawErrorCode, int customReasonCode)
GollumException(GollumErrorCode code, String msg, int rawErrorCode)
GollumException(Exception e, GollumErrorCode code)
-
Method Summary
Modifier and Type Method Description GollumErrorCode
getCode()
int
getRawErrorCode()
int
getCustomReasonCode()
boolean
isRawErrorCode4xx()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GollumException
GollumException(GollumErrorCode code)
-
GollumException
GollumException(GollumErrorCode code, String msg)
-
GollumException
GollumException(GollumErrorCode code, String msg, int rawErrorCode, int customReasonCode)
- Parameters:
rawErrorCode
- like status code in https response.customReasonCode
- reason code (you can see that like a sub code) associated to the raw error code.
-
GollumException
GollumException(GollumErrorCode code, String msg, int rawErrorCode)
- Parameters:
rawErrorCode
- like status code in https response.
-
GollumException
GollumException(Exception e, GollumErrorCode code)
-
-
Method Detail
-
getCode
GollumErrorCode getCode()
-
getRawErrorCode
int getRawErrorCode()
-
getCustomReasonCode
int getCustomReasonCode()
-
isRawErrorCode4xx
boolean isRawErrorCode4xx()
-
getMessage
String getMessage()
-
-
-
-