Skip to content

Raise PrimaryKeyError instead of ValueError for primary key issues #16

@NilsSeibertQC

Description

@NilsSeibertQC

Currently, a ValueError is raised when issues with the primary key are encountered. These issues are:

  • the primary key property not holding for the data
  • the specified columns not being present
  • an empty primary key being provided
  • no primary key at all.

A dedicated PrimaryKeyError would allow catching these issues specifically, instead of relying on the broad ValueError.

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