You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2018/08/06 21:31:00 UTC

[jira] [Updated] (THRIFT-4609) keep InnerException wherever appropriate

     [ https://issues.apache.org/jira/browse/THRIFT-4609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer updated THRIFT-4609:
-------------------------------
    Description: 
The C# {{Exception}} type offers the ability to store an {{InnerException}} which is sometimes quite helpful for debugging. Hence, wherever appropriate, any exceptions caught and rethrown should be stored into the {{InnerException}} field to provide the original error information to the caller.

The only exception (pun intended) to this is {{TApplicationException}} - this type is intended to be serialized and sent back to the client. Not only that there is no way to preserve that information

  was:
The C# {{Exception}} type offers the ability to store an {{InnerException}} which is sometimes quite helpful for debugging. Hence, wherever appropriate, any exceptions caught and rethrown should be stored into the {{InnerException}} field to provide the original error information to the caller.

The only exception (pun intended) to this is {{TApplicationException}} - this type is intended to be serialized and sent back to the client. As of today, Thrift does not any built-in way to preserve InnerExceptions through that channnel.

 


> keep InnerException wherever appropriate 
> -----------------------------------------
>
>                 Key: THRIFT-4609
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4609
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C# - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>
> The C# {{Exception}} type offers the ability to store an {{InnerException}} which is sometimes quite helpful for debugging. Hence, wherever appropriate, any exceptions caught and rethrown should be stored into the {{InnerException}} field to provide the original error information to the caller.
> The only exception (pun intended) to this is {{TApplicationException}} - this type is intended to be serialized and sent back to the client. Not only that there is no way to preserve that information



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)