You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SqlException create methods are currently internal.
I would like some kind of create method to be public.
Rationale
Unit tests. There are various scenarios in which SqlException is handled differently than other kinds of exceptions, and being able to test those scenarios without actual database would be useful.
SqlException
create methods are currently internal.I would like some kind of create method to be public.
Rationale
Unit tests. There are various scenarios in which SqlException is handled differently than other kinds of exceptions, and being able to test those scenarios without actual database would be useful.
Related StackOverflow thread, How to throw a SqlException when needed for mocking and unit testing?, has 53 upvotes.
Potential API
Open Questions
Is there a better way to expose
SqlError
that would allow easier future extensibility?Some kind of
SqlErrorBuilder
?The text was updated successfully, but these errors were encountered: