Skip to content
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

Follow MS guidelines for custom exception types. #826

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

xprl-gjf
Copy link
Contributor

@xprl-gjf xprl-gjf commented Feb 3, 2021

Reference Issue

No existing recorded issue.

What does this implement/fix? Explain your changes.

If using this SVG library within a .Net framework AppDomain, exceptions must be serializable to cross AppDomain boundaries.

In addition, implement common exception constructors, in line with guidance at https://docs.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions

@mrbean-bremen
Copy link
Member

@paulushub - I've removed sealed and added release notes.

@paulushub
Copy link
Contributor

paulushub commented Dec 29, 2023

@mrbean-bremen Thank you, the private constructors must revert back to protected

@mrbean-bremen
Copy link
Member

Thank you, the private constructors must revert back to protected

Ah right, thanks - missed this. Fixed now.

@paulushub
Copy link
Contributor

Ah right, thanks - missed this. Fixed now.

You are on fire! you are sure you do not want to also revert the decision on contribution? 😄

@paulushub paulushub requested review from mrbean-bremen and AraHaan and removed request for paulushub and AraHaan December 29, 2023 18:25
@mrbean-bremen
Copy link
Member

you are sure you do not want to also revert the decision on contribution?

Quite sure 😁
Still can do trivial stuff like this, of course...

- make custom exception types serializable.
@paulushub paulushub merged commit 2e765f4 into svg-net:master Dec 30, 2023
7 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 30, 2023
github-actions bot pushed a commit to inforithmics/SVG that referenced this pull request Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants