xFunc
xFunc copied to clipboard
Wrap exceptions from BCL to custom xFunc exceptions
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.