Currently I need a way to pass this `x` to the fun...
# announcements
d
Currently I need a way to pass this
x
to the function, ala
Copy code
when(x) {
  is SomeException -> do1()
  isSomeComplexExceptionCond(x) -> do2()
}
but I guess this is impossible and I need to use arugment-less
when
instead:
Copy code
when {
  x is SomeException ->
  // etc
}
1