Skip to content

Commit

Permalink
Fixed dispatch code to report the original dispatch exception (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
bentoi committed Jan 22, 2021
1 parent c78b8a7 commit 8def9dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG-3.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ These are the changes since Ice 3.7.4.

## C# Changes

- Fixed dispatch warnings and unknown exceptions to report the original exception raised by
the servant implementation.

- Add .NET 5.0 support, Ice for C# assemblies are now build for .NET 5.0, .NET Standard 2.1 and .NET 4.5.

- Fixed a bug that can result in the file logger log files not correctly close.
Expand Down
2 changes: 2 additions & 0 deletions csharp/src/Ice/Incoming.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace IceInternal
using System.IO;
using System.Globalization;
using System.Threading.Tasks;
using System.Runtime.ExceptionServices;

public class Incoming : Ice.Request
{
Expand Down Expand Up @@ -635,6 +636,7 @@ private void handleException(Exception exc, bool amd)

try
{
ExceptionDispatchInfo.Capture(exc).Throw();
throw exc;
}
catch(Ice.RequestFailedException ex)
Expand Down

0 comments on commit 8def9dd

Please sign in to comment.