https://kotlinlang.org logo
k

kirillrakhman

02/06/2017, 6:57 PM
throw Exception()
is of type
Nothing
which is a subtype of eveything including
Exception
, which is why you can
throw
it