Class TPCSDKException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.thalesgroup.tpcsdk.manager.exception.TPCSDKException
-
- All Implemented Interfaces:
Serializable
public class TPCSDKException extends Exception
TPCSDKException is generic exception class to handle all TPC errors TPCSDKException providesexceptionTypethrough which called will get exact reason for error- Since:
- 1.0
- Version:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TPCSDKException(TPCSDKExceptionType exceptionType)TPCSDKException(TPCSDKExceptionType exceptionType, int errorCode)TPCSDKException(TPCSDKExceptionType exceptionType, int errorCode, String xRequestId)TPCSDKException(TPCSDKExceptionType exceptionType, int errorCode, Throwable cause)TPCSDKException(TPCSDKExceptionType exceptionType, String xRequestId)TPCSDKException(TPCSDKExceptionType exceptionType, StringBuilder extraErrorMsg)TPCSDKException(TPCSDKExceptionType exceptionType, Throwable cause)TPCSDKException(TPCSDKExceptionType exceptionType, Throwable cause, String xRequestId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TPCSDKExceptionTypegetExceptionType()StringgetRequestId()Provides id of the failed server request-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, StringBuilder extraErrorMsg)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, String xRequestId)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, Throwable cause)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, Throwable cause, String xRequestId)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, int errorCode, Throwable cause)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, int errorCode)
-
TPCSDKException
public TPCSDKException(TPCSDKExceptionType exceptionType, int errorCode, String xRequestId)
-
-
Method Detail
-
getRequestId
public String getRequestId()
Provides id of the failed server request- Returns:
- value of x-request-id or null in case of local exception
-
getExceptionType
public TPCSDKExceptionType getExceptionType()
-
-