< Summary

Class:Azure.Data.Tables.Errors
Assembly:Azure.Data.Tables
File(s):C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Sas\Errors.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:26
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ArgumentNull(...)-0%100%
InvalidSasProtocol(...)-0%100%
InvalidResourceType(...)-0%100%
SasMissingData(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\tables\Azure.Data.Tables\src\Sas\Errors.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Globalization;
 6
 7namespace 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)
 016            => new ArgumentNullException(paramName);
 17
 18        public static ArgumentOutOfRangeException InvalidSasProtocol(string protocol, string sasProtocol)
 019            => new ArgumentOutOfRangeException(protocol, $"Invalid {sasProtocol} value");
 20        public static ArgumentException InvalidResourceType(char s)
 021            => new ArgumentException($"Invalid resource type: '{s}'");
 22
 23        public static InvalidOperationException SasMissingData(string paramName)
 024            => new InvalidOperationException($"SAS is missing required parameter: {paramName}");
 25    }
 26}