Minor update to function signatures for RISCV64 architecture (#43862)
[platform/upstream/dotnet/runtime.git] / src / mono / netcore / System.Private.CoreLib / src / Internal / Runtime / InteropServices / WindowsRuntime / ExceptionSupport.cs
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3
4 using System;
5 using System.Diagnostics.CodeAnalysis;
6
7 namespace Internal.Runtime.InteropServices.WindowsRuntime
8 {
9     public static class ExceptionSupport
10     {
11         /// <summary>
12         /// Attach restricted error information to the exception if it may apply to that exception, returning
13         /// back the input value
14         /// </summary>
15         [return: NotNullIfNotNull("e")]
16         public static Exception? AttachRestrictedErrorInfo(Exception? e) => throw new PlatformNotSupportedException();
17
18         /// <summary>
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.
21         /// </summary>
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();
24     }
25 }