Add / improve custom exceptions
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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