Skip to content

Wrap exceptions from BCL to custom xFunc exceptions #767

Open
@sys27

Description

@sys27

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions