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.
Now we use mostly
error,requireor 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.