ProvisioningServiceClientExceptionManager 类

定义

Provide static function to verify the Device Provisioning Service results and throw appropriate exception.

public class ProvisioningServiceClientExceptionManager
继承
java.lang.Object
ProvisioningServiceClientExceptionManager

方法

httpResponseVerification(int responseStatus, String errorReason)

Verify response using response status


    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]

    

  

适用于