From 999971c3ff0a57d166dbb06fbc656e1f28071d5f Mon Sep 17 00:00:00 2001 From: shafang Date: Thu, 3 Oct 2019 16:57:20 -0700 Subject: [PATCH] add resourceBodyNotFoundException --- .../ResourceBodyNotFoundException.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sdk/core/azure-core/src/main/java/com/azure/core/exception/ResourceBodyNotFoundException.java diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/exception/ResourceBodyNotFoundException.java b/sdk/core/azure-core/src/main/java/com/azure/core/exception/ResourceBodyNotFoundException.java new file mode 100644 index 000000000000..d315544ae050 --- /dev/null +++ b/sdk/core/azure-core/src/main/java/com/azure/core/exception/ResourceBodyNotFoundException.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.core.exception; + +import com.azure.core.http.HttpResponse; + +public class ResourceBodyNotFoundException extends HttpResponseException { + + /** + * Initializes a new instance of the ResourceBodyNotFoundException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ResourceBodyNotFoundException(final String message, final HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the ResourceBodyNotFoundException 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 ResourceBodyNotFoundException(final String message, final HttpResponse response, final Object value) { + super(message, response, value); + } + + /** + * Initializes a new instance of the ResourceBodyNotFoundException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param cause the Throwable which caused the creation of this ResourceBodyNotFoundException + */ + public ResourceBodyNotFoundException(final String message, final HttpResponse response, final Throwable cause) { + super(message, response, cause); + } +}