Repository navigation
Preserve exception stack traces - #248
Cédric Luthi (0xced) wants to merge 1 commit into
Conversation
|
Cédric Luthi (@0xced) Is there some reason you feel that is necessary? We did that intentionally to limit the stack trace that was exported. |
This seems weird to me. Losing some part of the original stack trace will just make it harder to diagnose issues. Many analyzers suggest to rethrow exceptions with The best practices for exceptions also recommends the same: private static void TransferFunds(Account from, Account to, decimal amount)
{
string withdrawalTrxID = from.Withdrawal(amount);
try
{
to.Deposit(amount);
}
catch
{
from.RollbackTransaction(withdrawalTrxID);
throw;
}
}
|
|
Would you mind reconsidering this pull request? |
|
Cédric Luthi (@0xced) , We have decided to go back though and relax a few places where we limit the stack, the areas you highlighted here are some of those areas we are refactoring to pass the source though. We will close this PR when we ship this update. |
Fix by Git user matkov accepted for crash during create when an invalid timespan is passed from a configuration file to the ServiceClient Constructor. See #326 for details. Fix by GIT user 0xced accepted for bug in Integrated user security setting, Code will now properly honor integrated security when attempting to authenticate. See #324 for details. Fixed a number of places where Async Calls did not have a .ConfigureAwait specification. Thanks to user 0xced for prompting this fix. Fixed a misleading warning message "Client ID not supplied, using SDK Sample Client ID for this connection" that would be incorrectly shown when ExternalAuthentication type was used. Fixes #314, Thanks for your report! Fixed a possible thread contention issue when managing connection context across multiple concurrent threads in the same client. Git issue: #304 Thanks for your report ! Fixed a memory leak when caused by a logger not being cleaned up when a the creation of the ServiceClient fails. Git issue: #322 Fixed issue where calling the IOrganizationService* interfaces after the client has been disposed would throw a NullReferenceException. Taking this action will now throw an ObjectDisposedException Removed a set of exception catch and rethrows to preserve the full callstack to caller. Thanks to Git user 0xceed for prompting ( and sticking with getting us to ) this fix. See: #248 for details.
See https://stackoverflow.com/questions/730250/is-there-a-difference-between-throw-and-throw-ex/730255#730255