semantic-kernel
semantic-kernel copied to clipboard
.Net Provide common error codes in KernelException
Hi, a KernelException is thrown in many places in the code, but only with message and the optional inner exception. We should have property of list of error codes in the KernelExeption. And an additional class which contains all error codes with their description. Something like below from handlerbars example but not using codes in the message.
ex.Message.Contains(nameof(HandlebarsPlannerErrorCodes.InsufficientFunctionsForGoal), StringComparison.CurrentCultureIgnoreCase)
|| ex.Message.Contains(nameof(HandlebarsPlannerErrorCodes.HallucinatedHelpers), StringComparison.CurrentCultureIgnoreCase)
|| ex.Message.Contains(nameof(HandlebarsPlannerErrorCodes.InvalidTemplate), StringComparison.CurrentCultureIgnoreCase))
@SergeyMenshykh what do you think about this proposal?
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.