| File: Contracts\IException.cs | Web Access |
| Project: src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Abstractions\Microsoft.Diagnostics.DataContractReader.Abstractions.csproj (Microsoft.Diagnostics.DataContractReader.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; namespace Microsoft.Diagnostics.DataContractReader.Contracts; public record struct ExceptionData( TargetPointer Message, TargetPointer InnerException, TargetPointer StackTrace, TargetPointer WatsonBuckets, TargetPointer StackTraceString, TargetPointer RemoteStackTraceString, int HResult, int XCode); public readonly record struct ExceptionStackFrameInfo( TargetPointer Ip, TargetPointer MethodDesc, bool IsLastForeignExceptionFrame); public interface IException : IContract { static string IContract.Name { get; } = nameof(Exception); TargetPointer GetNestedExceptionInfo(TargetPointer exception, out TargetPointer nextNestedException, out TargetPointer thrownObjectHandle) => throw new NotImplementedException(); ExceptionData GetExceptionData(TargetPointer managedException) => throw new NotImplementedException(); IEnumerable<ExceptionStackFrameInfo> GetExceptionStackFrames(TargetPointer exceptionAddr) => throw new NotImplementedException(); } public readonly struct Exception : IException { // Everything throws NotImplementedException }