Kotlin / Kotlin/dataframe

Add / improve custom exceptions

Open
#1,871 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

Now we use mostly error, require or throw common exceptions. We should introduce custom exceptions.

We have some:
https://github.com/Kotlin/dataframe/tree/master/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/exceptions
but most cases are not covered / not used.
We have https://github.com/Kotlin/dataframe/blob/master/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/exceptions/ColumnNotFoundException.kt
that are not used anywhere!

It can also significantly improve DF debugging — exception should contain df/row/column field for that purpose.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/exceptions and the existing ColumnNotFoundException.kt. Search the core code for uses of error, require, and common exceptions to map the uncovered cases. Done means the agreed cases use custom exceptions and the relevant exceptions expose dataframe, row, or column context for debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.