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
I noticed that in various places (GitHub search) you are throwing the base Exception type, which is not recommended.
Would it be possible to create a custom base Exception like SanityException and whenever you throw, throw an Exception that derives from it?
Here for example, you could throw a SanitySerializationException such that we - as a consumer of this library - can utilize the catch (SanityException ex) or catch (SanitySerializationException ex) syntaxes.
I noticed that in various places (GitHub search) you are throwing the base
Exception
type, which is not recommended.Would it be possible to create a custom base Exception like
SanityException
and whenever you throw, throw an Exception that derives from it?Here for example, you could throw a
SanitySerializationException
such that we - as a consumer of this library - can utilize thecatch (SanityException ex)
orcatch (SanitySerializationException ex)
syntaxes.sanity-linq/src/Sanity.Linq/SanityClient.cs
Lines 234 to 237 in 170cd80
The text was updated successfully, but these errors were encountered: