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

Improve errorhandling on unsupported datatypes #63

Open
theyd opened this issue May 12, 2023 · 0 comments
Open

Improve errorhandling on unsupported datatypes #63

theyd opened this issue May 12, 2023 · 0 comments
Labels
bug Something isn't working PR welcome User contribution/PR is welcome

Comments

@theyd
Copy link

theyd commented May 12, 2023

Hi,

i had some struggle with the FromModel method using Tomlyn with VB.net

I created a TomlTable and added some datafields. One of the datafields had the type Net.IPAddress.
When i run the FromModel method, i got a very general exception of type System.Reflection.TargetInvocationException with the errormessage "Exception has been thrown by the target of an invocation".

I was able to fix the issue as i use string instead of IPAddress, but it took some time to get it.

Maybe a typecheck with an appropriate exception would help to understand what happened.

@xoofx xoofx added bug Something isn't working PR welcome User contribution/PR is welcome labels Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR welcome User contribution/PR is welcome
Projects
None yet
Development

No branches or pull requests

2 participants