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
ConstructorDescriptionServiceException
(int statusCode, Map<String, List<String>> headers, Netlicensing errorResponse) Construct aServiceException
with the service error response object. -
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class com.labs64.netlicensing.exception.NetLicensingException
contains, getMessage, getMostSpecificCause, getRootCause
Methods 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 aServiceException
with 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
-