public class ProvisioningServiceClientExceptionManager extends Object
| Constructor and Description |
|---|
ProvisioningServiceClientExceptionManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
httpResponseVerification(int responseStatus,
String errorReason)
Verify response using response status
|
public ProvisioningServiceClientExceptionManager()
public static void httpResponseVerification(int responseStatus,
String errorReason)
throws ProvisioningServiceClientServiceException
ProvisioningServiceClientServiceException [any exception reported in the http response]
|
|
+-->ProvisioningServiceClientBadUsageException [any http response 4xx]
| |
| +-->ProvisioningServiceClientBadFormatException [400]
| +-->ProvisioningServiceClientUnathorizedException [401]
| +-->ProvisioningServiceClientNotFoundException [404]
| +-->ProvisioningServiceClientPreconditionFailedException [412]
| +-->ProvisioningServiceClientTooManyRequestsException [429]
|
+-->ProvisioningServiceClientTransientException [any http response 5xx]
| |
| +-->ProvisioningServiceClientInternalServerErrorException [500]
|
+-->ProvisioningServiceClientUnknownException [any other http response >300, but not 4xx or 5xx]
responseStatus - is the response statuserrorReason - is the error descriptionProvisioningServiceClientBadFormatException - This exception is thrown if the response status equal 400ProvisioningServiceClientUnathorizedException - This exception is thrown if the response status equal 401ProvisioningServiceClientNotFoundException - This exception is thrown if the response status equal 404ProvisioningServiceClientPreconditionFailedException - This exception is thrown if the response status equal 412ProvisioningServiceClientInternalServerErrorException - This exception is thrown if the response status equal 500ProvisioningServiceClientServiceException - This exception is thrown if the response status none of them above and greater then 300Copyright © 2022. All rights reserved.