From 89fe0452e67751c13f83b4c27e9a8f11da6d84b9 Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Thu, 7 Apr 2022 16:41:07 -0700 Subject: [PATCH] Fixed new checkstyle rule in share file --- .../java/com/azure/storage/file/share/ShareClientBuilder.java | 2 +- .../com/azure/storage/file/share/ShareFileClientBuilder.java | 2 +- .../com/azure/storage/file/share/ShareServiceClientBuilder.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClientBuilder.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClientBuilder.java index e24f49c9d8c3e..15d7d483e6e69 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClientBuilder.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClientBuilder.java @@ -287,7 +287,7 @@ public ShareClientBuilder endpoint(String endpoint) { } } catch (MalformedURLException ex) { throw logger.logExceptionAsError( - new IllegalArgumentException("The Azure Storage File Service endpoint url is malformed.")); + new IllegalArgumentException("The Azure Storage File Service endpoint url is malformed.", ex)); } return this; diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClientBuilder.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClientBuilder.java index f34162d302b46..832ed93a92a99 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClientBuilder.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClientBuilder.java @@ -348,7 +348,7 @@ public ShareFileClientBuilder endpoint(String endpoint) { } } catch (MalformedURLException ex) { throw logger.logExceptionAsError( - new IllegalArgumentException("The Azure Storage File endpoint url is malformed.")); + new IllegalArgumentException("The Azure Storage File endpoint url is malformed.", ex)); } return this; diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClientBuilder.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClientBuilder.java index ec4ec02924b15..3c373952ba9de 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClientBuilder.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClientBuilder.java @@ -256,7 +256,7 @@ public ShareServiceClientBuilder endpoint(String endpoint) { } } catch (MalformedURLException ex) { throw logger.logExceptionAsError( - new IllegalArgumentException("The Azure Storage File Service endpoint url is malformed.")); + new IllegalArgumentException("The Azure Storage File Service endpoint url is malformed.", ex)); } return this;