com.azure.security.keyvault.administration.implementation.models.KeyVaultErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-security-keyvault-administration Show documentation
Show all versions of azure-security-keyvault-administration Show documentation
This module contains client library for Microsoft Azure KeyVault Administration.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.security.keyvault.administration.implementation.models;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.http.HttpResponse;
/**
* Exception thrown for an invalid response with KeyVaultError information.
*/
public final class KeyVaultErrorException extends HttpResponseException {
/**
* 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(String message, HttpResponse 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 value the deserialized response value.
*/
public KeyVaultErrorException(String message, HttpResponse response, KeyVaultError value) {
super(message, response, value);
}
/**
* {@inheritDoc}
*/
@Override
public KeyVaultError getValue() {
return (KeyVaultError) super.getValue();
}
}