| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Threading.Tasks; |
| | | 6 | | using Azure.Storage.Blobs.Models; |
| | | 7 | | using Azure.Storage.Files.DataLake.Models; |
| | | 8 | | |
| | | 9 | | namespace Azure.Storage.Files.DataLake |
| | | 10 | | { |
| | | 11 | | internal class DataLakeQueryErrorHandler |
| | | 12 | | { |
| | | 13 | | private Action<DataLakeQueryError> _errorHandler; |
| | | 14 | | |
| | 0 | 15 | | public DataLakeQueryErrorHandler(Action<DataLakeQueryError> errorHandler) |
| | | 16 | | { |
| | 0 | 17 | | _errorHandler = errorHandler; |
| | 0 | 18 | | } |
| | | 19 | | |
| | | 20 | | public void Handle(BlobQueryError blobQueryError) |
| | 0 | 21 | | => _errorHandler(blobQueryError.ToDataLakeQueryError()); |
| | | 22 | | |
| | | 23 | | } |
| | | 24 | | } |