gnodet-bot commented on code in PR #30729:
URL: https://github.com/apache/camel/pull/30729#discussion_r4682656849


##########
components/camel-azure/camel-azure-storage-datalake/src/main/java/org/apache/camel/component/azure/storage/datalake/DataLakeConsumer.java:
##########
@@ -136,6 +138,17 @@ private Queue<Exchange> createBatchExchangesFromPath(final 
DataLakeFileSystemCli
         return exchanges;
     }
 
+    /**
+     * Whether the exception is the answer of the service to a file that does 
not exist. Reading a file goes through the
+     * blob endpoint ({@code DataLakeFileClient.openInputStream} reads with a 
{@code BlockBlobClient} and does not
+     * translate its exception), so a missing file is a {@link 
BlobStorageException}, not a
+     * {@link DataLakeStorageException}.
+     */
+    private static boolean isNotFound(final Exception e) {

Review Comment:
   🔎 **Nit:** The `Exception` parameter type could be narrowed to 
`HttpResponseException` (the common supertype of both 
`DataLakeStorageException` and `BlobStorageException`) to better signal intent. 
No correctness impact — the method is `private static` and only called from 
catch blocks that already constrain the type — but it makes the contract 
slightly more self-documenting.
   
   ```suggestion
       private static boolean isNotFound(final 
com.azure.core.exception.HttpResponseException e) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to