Replies: 1 comment
-
@gilliduck The Exception is "honored". If you visualize the exception, you'll be able to see "your" exception as the inner exception. My guess is what you really "wanted" is to display the message you set in the exception to the user. This is intentionally not done, as exceptions normally contain very technical descriptions, which most users of the application simply do not care about. Is there a reason you are trying to use a custom exception containing valid values instead of implementing the parts of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Information
Describe the bug
The exception thrown inside of a custom
TypeConverter
is not honored. See below code for full example, but I'm throwing aNotSupportedException
with a specific message. The message that is rendered in the console is not my exception message but instead a more generic message.To Reproduce
Throw an exception with a custom message in a
TypeConverter
implementation used on aCommandOption
orCommandArgument
. Ensure that the exception is hit, note that the output message in the console is not the message from the exception (nor is stacktrace shown, i.e. the exception is eaten).Expected behavior
Exception behavior is honored and the thrown exception is bubbled up appropriately. Message is show at the very least, ideally full exception behavior is honored.
Additional context
Output in console:
Error: Failed to convert 'foo' to SuggestedActionType[].
Beta Was this translation helpful? Give feedback.
All reactions