Skip to content

CloudException is not populated with body #13

@puneet101

Description

@puneet101

CloudError PO fetched w/ CloudException.getBody() is not working in snapshot jar.

Example:

// code
} catch (CloudException ce) {
ce.printStackTrace();
CloudError error = ce.getBody();
String errorCode = error.getCode(); --> throws NPE
}

From: https://azure.github.io/azure-sdk-for-java/com/microsoft/azure/CloudException.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions