-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change thrown exception type in Window's class constructor #347
Conversation
Throw PlatformNotSupportedException instead of the InvalidOperationException in Window's constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unreal (i don't remember how it was supposed to be resolved, wait for @Vixenka to lgtm this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally thank you for the contributing!
But you do not understand issue well, because you change this on the managed side, but you should change this on this line:
NoiseEngine/NoiseEngine.Native/src/interop/rendering/presentation/window_interop.rs
Line 34 in 334ed86
InvalidOperationError::with_str("Window is not supported on this device.").into(), |
But it still fine, repair this and retry, also remember about C# code style, because you use another :)
This reverts commit 9adfddb as a result of the Code Review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic! You done this! LGTM!
Throw PlatformNotSupportedException instead of the InvalidOperationException in the Window's class constructor as was said in #242