damian
12/14/2017, 2:32 PMsealed class BaseException: Throwable() {
class ErrorOne: BaseException()
}
sealed class SpecificExceptions: BaseException() {
class ErrorTwo: SpecificExceptions()
}
And in a when
have branches for both ErrorOne
and ErrorTwo
added