Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Change base class of OperationAbortedException to SystemException#16391

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
EgorBo:systemexception-oae
Feb 23, 2017
Merged

Change base class of OperationAbortedException to SystemException#16391
stephentoub merged 1 commit into
dotnet:masterfrom
EgorBo:systemexception-oae

Conversation

@EgorBo
Copy link
Copy Markdown
Member

@EgorBo EgorBo commented Feb 23, 2017

#12351 changed lots of Exceptions to be derived from SystemException instead of Exception but looks like System.Data.OperationAbortedException was forgotten.

From our referencesource dump - it uses SystemException: https://github.com/mono/mono/blob/master/mcs/class/referencesource/System.Data/System/Data/OperationAbortedException.cs#L19

PS:
Also, I am wondering why https://github.com/dotnet/corefx/blob/master/src/System.Data.SqlClient/src/System/Data/OperationAbortedException.cs#L18 is not replaced with https://github.com/dotnet/corefx/blob/master/src/System.Data.Common/src/System/HResults.cs#L26
(I see HResults is internal so SqlClient can not use it, but that magic number doesn't look good).

@stephentoub
Copy link
Copy Markdown
Member

LGTM.

(Separately, I don't see OperationAbortedException exposed in the ref for SqlClient, so it doesn't look like the type is directly nameable outside of this assembly.)

@stephentoub stephentoub merged commit f3a7a8b into dotnet:master Feb 23, 2017
@akoeplinger
Copy link
Copy Markdown
Member

(Separately, I don't see OperationAbortedException exposed in the ref for SqlClient, so it doesn't look like the type is directly nameable outside of this assembly.)

Is there a reason for why it's not exposed? It's public in full .net and xamarin.

@akoeplinger
Copy link
Copy Markdown
Member

Ah, I just found https://github.com/dotnet/corefx/issues/15143 :)

@EgorBo EgorBo deleted the systemexception-oae branch February 23, 2017 12:53
@karelz karelz modified the milestone: 2.0.0 Mar 1, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Change base class of OperationAbortedException to SystemException

Commit migrated from dotnet/corefx@f3a7a8b
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants