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

Fixed type reader/converter parsing exception #3084

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Suiram1701
Copy link

Description

An issue that I encountered when trying to implement a error handling were that if an invalid value were provided for a parameter instead of a TypeConverterResult a ExecuteResult were returned. By debugging the command execution process I noticed that the default value reader/converter only catches for InvalidCastExceptions but not for FormatExceptions which will be thrown if Convert.ChangeType can't parse the provided value.
By also catching FormatExceptions this problem would be resolved.

Changes

Catches also FormatExceptions on every use of Convert.ChangeType.

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

Successfully merging this pull request may close these issues.

1 participant