Class KeyVaultErrorException

  • All Implemented Interfaces:
    Serializable

    public class KeyVaultErrorException
    extends com.microsoft.rest.RestException
    Exception thrown for an invalid response with KeyVaultError information.
    See Also:
    Serialized Form
    • Constructor Detail

      • KeyVaultErrorException

        public KeyVaultErrorException​(String message,
                                      retrofit2.Response<okhttp3.ResponseBody> response)
        Initializes a new instance of the KeyVaultErrorException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
      • KeyVaultErrorException

        public KeyVaultErrorException​(String message,
                                      retrofit2.Response<okhttp3.ResponseBody> response,
                                      KeyVaultError body)
        Initializes a new instance of the KeyVaultErrorException 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

      • body

        public KeyVaultError body()
        Overrides:
        body in class com.microsoft.rest.RestException