Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1730

Rethrow .NET exceptions while preserving stack trace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.16
    • REEF.NET
    • None

    Description

      In several places in our code, we use

      catch (Exception e)
      {
          LOGGER.Log(...);
          throw e;
      }
      

      In this case the original stack trace is not preserved, and exception looks like it appeared in throw line. We should use just throw; instead to rethrow the original exception with the original stack trace.

      Attachments

        Activity

          People

            MariiaMykhailova Mariia Mykhailova
            MariiaMykhailova Mariia Mykhailova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: