Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.labs64.netlicensing.exception.NetLicensingException
com.labs64.netlicensing.exception.ServiceException
- All Implemented Interfaces:
Serializable
ServiceException is thrown when error response is received from the service.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceException(int statusCode, Map<String, List<String>> headers, Netlicensing errorResponse) Construct aServiceExceptionwith the service error response object. -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class com.labs64.netlicensing.exception.NetLicensingException
contains, getMessage, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
public ServiceException(int statusCode, Map<String, List<String>> headers, Netlicensing errorResponse) Construct aServiceExceptionwith the service error response object.- Parameters:
status- response statusheaders- response headerserrorResponse- the service response containing the error info.
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getHeaders
-
getErrorResponse
-