Interop.Errors.cs #40319
Interop.Errors.cs
#40319
-
Is there any public interface to this stuff |
Beta Was this translation helpful? Give feedback.
Answered by
danmoseley
Aug 14, 2020
Replies: 1 comment 2 replies
-
Does that help? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
olapchuk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Win32Exception()
works on Unix (it's a terrible name - historical) and you can either pass the errno or it will get it itself withMarshal.GetLastWin32Error()
(again, historical name) and then it will use the code to get a message usingstrerror
on Unix.runtime/src/libraries/Microsoft.Win32.Primitives/src/System/ComponentModel/Win32Exception.cs
Line 31 in c87e75e
runtime/src/libraries/Common/src/Interop/Unix/Interop.Errors.cs
Line 145 in c87e75e
Does that help?