<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.22.0" />

Microsoft.IdentityModel.Tokens.Experimental.ValidationError

public class ValidationError
Represents an error that occurred during a SecurityToken validation.
namespace Microsoft.IdentityModel.Tokens.Experimental { public class ValidationError { protected Exception Exception { get; set; } public ValidationFailureType FailureType { get; } public Exception InnerException { get; } public string Message { get; } public IList<StackFrame> StackFrames { get; } public virtual Exception GetException(); public static ValidationError NullParameter(string parameterName, StackFrame stackFrame); public ValidationError AddStackFrame(StackFrame stackFrame); public ValidationError AddCurrentStackFrame(string filePath = "", int lineNumber = 0, int skipFrames = 1); public static StackFrame GetCurrentStackFrame(string filePath = "", int lineNumber = 0, int skipFrames = 1); } }