1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
5 using System.Diagnostics.CodeAnalysis;
7 namespace Internal.Runtime.InteropServices.WindowsRuntime
9 public static class ExceptionSupport
12 /// Attach restricted error information to the exception if it may apply to that exception, returning
13 /// back the input value
15 [return: NotNullIfNotNull("e")]
16 public static Exception? AttachRestrictedErrorInfo(Exception? e) => throw new PlatformNotSupportedException();
19 /// Report that an exception has occurred which went user unhandled. This allows the global error handler
20 /// for the application to be invoked to process the error.
22 /// <returns>true if the error was reported, false if not (ie running on Win8)</returns>
23 public static bool ReportUnhandledError(Exception? ex) => throw new PlatformNotSupportedException();