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
(javax.ws.rs.core.Response.Status status, javax.ws.rs.core.MultivaluedMap<String, Object> headers, Netlicensing errorResponse) Construct aServiceException
with the service error response object. -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response.Status
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(javax.ws.rs.core.Response.Status status, javax.ws.rs.core.MultivaluedMap<String, Object> 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
-
getStatus
public javax.ws.rs.core.Response.Status getStatus() -
getHeaders
-
getErrorResponse
-