Class CloudException

  • All Implemented Interfaces:
    Serializable

    public final class CloudException
    extends com.azure.common.exception.HttpRequestException
    Exception thrown for an invalid response with custom error information.
    See Also:
    Serialized Form
    • Constructor Detail

      • CloudException

        public CloudException​(String message,
                              com.azure.common.http.HttpResponse response)
        Initializes a new instance of the CloudException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
      • CloudException

        public CloudException​(String message,
                              com.azure.common.http.HttpResponse response,
                              CloudError body)
        Initializes a new instance of the CloudException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
        body - the deserialized response body
    • Method Detail

      • value

        public CloudError value()
        Overrides:
        value in class com.azure.common.exception.HttpRequestException