Closed Emeka-MSFT closed 2 months ago
Hi Kusto decided to (almost) only throw KustoException type, so as for users (and ourselves) to be able to handle it together. As for the side note - it is a new exception - we do need to document it.
Kusto decided to (almost) only throw KustoException type, so as for users (and ourselves) to be able to handle it together.
By design, operation-cancelled-exception is a special case; i.e. it is the/that exception to the rule (of single base exception). Therefore, please reconsider; this is a wrong decision.
More Data/Justification: If every component/library decides to create their own user-cancelled-exception (which doesn't derive from OperationCancelledException), then async pattern will be broken. All code will have to:
Summary: This decision (a) breaks c# convention, and (b) doesn't consider consumer/consumption pattern, and (c) prioritizes sdk-team's convenience over customer products complexity and cost of maintenance.
This is related to the following issue: #30.
By convention,
KustoClientRequestCanceledByUserException
should inherit from OperationCancelledException.KustoClientException
->KustoException
->Exception
.Side Note:
KustoClientRequestCanceledByUserException
is a customer facing exception, also consider adding a doc for it.