Skip to content

Preserve stack trace in KineticaIngestor.cs #8

@antoncharal

Description

@antoncharal

throw ex; resets Exception.StackTrace to the current frame. CA2200 flags this. Consumers see ingest failures as originating in the ingestor, masking the real fault site (serialiser, transport, deserialiser).

Proposal:
catch (Exception ex) { throw; }

Audit the entire file (and ideally the whole repo) for the same anti-pattern with a quick grep: \bthrow\s+\w+\s*; excluding throw new. Apply the same fix to any siblings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions