Update: Kotlin 2.4 Introduces Rich Errors, which are SumTypes
https://xuanlocle.medium.com/kotlin-2-4-introduces-rich-errors-a-game-changer-for-error-handling-413d281e4a05 the | symbol is used as in Scala or TS