<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2" />

Microsoft.Identity.Client.MsalClientException

This exception class represents errors that are local to the library or the device. Contrary to MsalServiceException which represent errors happening from the Azure AD service or the network. For more details, see https://aka.ms/msal-net-exceptions
public MsalClientException(string errorCode)

Initializes a new instance of the exception class with a specified error code.

public MsalClientException(string errorCode, string errorMessage)

Initializes a new instance of the exception class with a specified error code and error message.

public MsalClientException(string errorCode, string errorMessage, Exception innerException)

Initializes a new instance of the exception class with a specified error code, error message and inner exception.