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

Wrap exceptions from BCL to custom xFunc exceptions #767

Open
sys27 opened this issue Mar 1, 2024 · 0 comments
Open

Wrap exceptions from BCL to custom xFunc exceptions #767

sys27 opened this issue Mar 1, 2024 · 0 comments
Milestone

Comments

@sys27
Copy link
Owner

sys27 commented Mar 1, 2024

Any exception thrown by any method from the .NET standard library is returned as is. It is better to wrap them into custom xFunc exceptions: TokenizeException/ParseException/etc. and set InnerException to the original exception whenever it is possible.

Exceptions to wrap:

  • DivideByZeroException
  • FormatException
  • OverflowException
  • KeyNotFoundException
  • IndexOutOfRangeException
  • InvalidOperationException
  • NotSupportedException
  • ArgumentNullException?
  • ArgumentException?

See #766.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant