| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Globalization; |
| | | 6 | | |
| | | 7 | | namespace Azure.Data.Tables |
| | | 8 | | { |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// Create exceptions for common error cases. |
| | | 12 | | /// </summary> |
| | | 13 | | internal partial class Errors |
| | | 14 | | { |
| | | 15 | | public static ArgumentNullException ArgumentNull(string paramName) |
| | 0 | 16 | | => new ArgumentNullException(paramName); |
| | | 17 | | |
| | | 18 | | public static ArgumentOutOfRangeException InvalidSasProtocol(string protocol, string sasProtocol) |
| | 0 | 19 | | => new ArgumentOutOfRangeException(protocol, $"Invalid {sasProtocol} value"); |
| | | 20 | | public static ArgumentException InvalidResourceType(char s) |
| | 0 | 21 | | => new ArgumentException($"Invalid resource type: '{s}'"); |
| | | 22 | | |
| | | 23 | | public static InvalidOperationException SasMissingData(string paramName) |
| | 0 | 24 | | => new InvalidOperationException($"SAS is missing required parameter: {paramName}"); |
| | | 25 | | } |
| | | 26 | | } |