thrownByEnumEntry

infix fun Throwable.thrownByEnumEntry(source: FROM)

Explicitly construct a mapping to throw an exception from source entry source.

For example

IllegalStateException() fromEnumEntry Color.ORANGE

will generate an explicit mapping, mapping Colour.ORANGE to an IllegalStateException being thrown.