< Summary

Class:Azure.Identity.AuthenticationFailedException
Assembly:Azure.Identity
File(s):C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\AuthenticationFailedException.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:40
Line coverage:100% (5 of 5)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
.ctor(...)-100%100%
CreateAggregateException(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\identity\Azure.Identity\src\AuthenticationFailedException.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5using System.Collections.Generic;
 6using System.Text;
 7using System.Linq;
 8
 9namespace Azure.Identity
 10{
 11    /// <summary>
 12    /// An exception class raised for errors in authenticating client requests.
 13    /// </summary>
 14    public class AuthenticationFailedException : Exception
 15    {
 16        /// <summary>
 17        /// Creates a new AuthenticationFailedException with the specified message.
 18        /// </summary>
 19        /// <param name="message">The message describing the authentication failure.</param>
 20        public AuthenticationFailedException(string message)
 1621            : this(message, null)
 22        {
 1623        }
 24
 25        /// <summary>
 26        /// Creates a new AuthenticationFailedException with the specified message.
 27        /// </summary>
 28        /// <param name="message">The message describing the authentication failure.</param>
 29        /// <param name="innerException">The exception underlying the authentication failure.</param>
 30        public AuthenticationFailedException(string message, Exception innerException)
 287031            : base(message, innerException)
 32        {
 287033        }
 34
 35        internal static AuthenticationFailedException CreateAggregateException(string message, IList<Exception> innerExc
 36        {
 837            return new AuthenticationFailedException(message, new AggregateException("Multiple exceptions were encounter
 38        }
 39    }
 40}