| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using Azure.Core; |
| | 6 | |
|
| | 7 | | namespace Azure.Identity |
| | 8 | | { |
| | 9 | |
|
| | 10 | | /// <summary> |
| | 11 | | /// An exception indicating a <see cref="TokenCredential"/> did not attempt to authenticate and retrieve <see cref=" |
| | 12 | | /// </summary> |
| | 13 | | public class CredentialUnavailableException : AuthenticationFailedException |
| | 14 | | { |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Creates a new <see cref="CredentialUnavailableException"/> with the specified message. |
| | 18 | | /// </summary> |
| | 19 | | /// <param name="message">The message describing the authentication failure.</param> |
| | 20 | | public CredentialUnavailableException(string message) |
| 2614 | 21 | | : this(message, null) |
| | 22 | | { |
| 2614 | 23 | | } |
| | 24 | |
|
| | 25 | | /// <summary> |
| | 26 | | /// Creates a new <see cref="CredentialUnavailableException"/> 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 CredentialUnavailableException(string message, Exception innerException) |
| 2666 | 31 | | : base(message, innerException) |
| | 32 | | { |
| 2666 | 33 | | } |
| | 34 | | } |
| | 35 | | } |