Skip to content

Fix CA2200: Re-throwing caught exception changes stack information #737

@poppastring

Description

@poppastring

The code in DasBlog.Managers (XmlRpcManager.cs) re-throws a caught exception, which changes stack information and can make debugging harder.

File:

  • DasBlog.Web.Repositories\XmlRpcManager.cs (line 140)

Consider using 'throw;' instead of 'throw ex;' to preserve the original stack trace.

Reference: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions