All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.keyvault.models.KeyVaultErrorException Maven / Gradle / Ivy

Go to download

This library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure Key Vault service are: (1) https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys. (2) https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets. (3) https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates. It is recommended that you move to the new package.

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator

package com.microsoft.azure.keyvault.models;

import com.microsoft.rest.RestException;
import okhttp3.ResponseBody;
import retrofit2.Response;

/**
 * Exception thrown for an invalid response with KeyVaultError information.
 */
public class KeyVaultErrorException extends RestException {
    /**
     * Initializes a new instance of the KeyVaultErrorException class.
     *
     * @param message the exception message or the response content if a message is not available
     * @param response the HTTP response
     */
    public KeyVaultErrorException(final String message, final Response response) {
        super(message, response);
    }

    /**
     * Initializes a new instance of the KeyVaultErrorException class.
     *
     * @param message the exception message or the response content if a message is not available
     * @param response the HTTP response
     * @param body the deserialized response body
     */
    public KeyVaultErrorException(final String message, final Response response, final KeyVaultError body) {
        super(message, response, body);
    }

    @Override
    public KeyVaultError body() {
        return (KeyVaultError) super.body();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy